home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / TextEngineSystem.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  75KB  |  1,869 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: TextEngineSystem.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *      Copyright:    © 1994,1995 by Apple Computer, Inc.
  13.  *                  All rights reserved.
  14.  * 
  15.  *    10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  16.  *    All Rights Reserved
  17.  *    Licensed Materials - Property of IBM
  18.  *    US Government Users Restricted Rights - Use, duplication or
  19.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  20.  * 
  21.  *  SOMClass: System Object Model base metaclass
  22.  */
  23.  
  24.  
  25. #ifndef SOM_TSystemTextEngine_h
  26. #define SOM_TSystemTextEngine_h
  27.  
  28.  
  29. /*
  30.  * Passthru lines: File: "C.h", "before"
  31.  */
  32. #include <Types.h>
  33. #include <Collections.h>
  34. #include <Drag.h>
  35. #include <Events.h>
  36. #include <Quickdraw.h>
  37. #include <TextObjects.h>
  38. #include <MixedMode.h>
  39. #include <TextCommon.h>
  40. #include <TextEngineTypes.h>
  41. #include <TextEdit.h>
  42.  
  43. #include <som.h>
  44.  
  45. /*
  46.  * -- This emitter treats Method Tokens as Thunks by default.
  47.  * -- Use the sc modifier "nothunks" to change this default
  48.  */
  49. #undef somresolve_
  50. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  51.  
  52. /*
  53.  * Define the class name as an object type
  54.  */
  55. #ifndef TSystemTextEngine
  56. #define TSystemTextEngine SOMObject
  57. #endif
  58. #include <somobj.h>
  59.  
  60. /*
  61.  * Start of user-defined types:
  62.  */
  63. #ifndef SOMClass
  64.     #define SOMClass SOMObject
  65. #endif /* SOMClass */
  66. #ifndef SOMObject
  67.     #define SOMObject SOMObject
  68. #endif /* SOMObject */
  69.  
  70. /*
  71.  * End of user-defined types.
  72.  */
  73.  
  74. #define TSystemTextEngine_MajorVersion 0
  75. #define TSystemTextEngine_MinorVersion 0
  76.  
  77. /*
  78.  * External name shortening if required
  79.  */
  80. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  81. #define TSystemTextEngineClassData d
  82. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  83. /*--------------Migration------------*/
  84.  
  85. #ifdef OLDIBMSOMAPISUPPORT
  86. #define TSystemTextEngine_classObj somNewClassReference(TSystemTextEngine)
  87. #define _TSystemTextEngine TSystemTextEngine_classObj
  88. #define TSystemTextEngineCClassData TSystemTextEngineClassData
  89. #define TSystemTextEngineNewClass(major,minor) somNewVersionedClassReference(TSystemTextEngine,major,minor)
  90. #endif
  91.  
  92. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  93. #define TSystemTextEngineMetaClass SOMClass
  94.  
  95. #if PRAGMA_ALIGN_SUPPORTED
  96. #  pragma options align=power
  97. #endif
  98.  
  99. /*
  100.  * Declare the class data structure
  101.  */
  102. SOMEXTERN struct TSystemTextEngineClassDataStructure {
  103. #ifdef OLDIBMSOMAPISUPPORT
  104.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  105. #else
  106.     long zero;
  107. #endif
  108.     somStaticClassInfo *sci;
  109.     somDToken        instanceDataToken;
  110.     long reserved [3];
  111.     somMToken InitTextInstance;
  112.     somMToken SetTextFrameDimensions;
  113.     somMToken GetTextFrameDimensions;
  114.     somMToken SetTextViewFrame;
  115.     somMToken GetTextViewFrame;
  116.     somMToken SetTextMargins;
  117.     somMToken GetTextMargins;
  118.     somMToken RefreshText;
  119.     somMToken EnableDrawingText;
  120.     somMToken DisableDrawingText;
  121.     somMToken IsDrawingTextEnabled;
  122.     somMToken AboutToImage;
  123.     somMToken EndImaging;
  124.     somMToken SetWholeTextTo;
  125.     somMToken GetWholeTextSize;
  126.     somMToken WriteWholeTextToPtr;
  127.     somMToken GetWholeScrapStyleCount;
  128.     somMToken WriteWholeScrapStyleToPtr;
  129.     somMToken GetStorageSizeForTextDataStructure;
  130.     somMToken SaveDataStructureToPtr;
  131.     somMToken ReadDataStructureFromPtr;
  132.     somMToken SetText;
  133.     somMToken InsertText;
  134.     somMToken DeleteText;
  135.     somMToken GetText;
  136.     somMToken SelectTextRange;
  137.     somMToken GetSelectedTextRange;
  138.     somMToken RevealTextRange;
  139.     somMToken ScrollTextViewTo;
  140.     somMToken GetScroll;
  141.     somMToken GetTextHeight;
  142.     somMToken SetTextAttribute;
  143.     somMToken GetTextAttribute;
  144.     somMToken NewTextAttributeIterator;
  145.     somMToken TextAttributeIterateForward;
  146.     somMToken DisposeTextAttributeIterator;
  147.     somMToken SetTextCollectionAttribute;
  148.     somMToken GetSharedTextAttribute;
  149.     somMToken GetNextTextElement;
  150.     somMToken GetPriorTextElement;
  151.     somMToken GetEnclosingTextElement;
  152.     somMToken ByteOffsetToPixel;
  153.     somMToken PixelToByteOffset;
  154.     somMToken ByteOffsetToWord;
  155.     somMToken NthWordInRange;
  156.     somMToken LineToByteOffsets;
  157.     somMToken ByteOffsetToLine;
  158.     somMToken ByteOffsetToParagraph;
  159.     somMToken GetCountChars;
  160.     somMToken GetCountWords;
  161.     somMToken GetCountLines;
  162.     somMToken GetCountParagraphs;
  163.     somMToken Cut;
  164.     somMToken Copy;
  165.     somMToken CanPaste;
  166.     somMToken Paste;
  167.     somMToken Clear;
  168.     somMToken IsUndoActive;
  169.     somMToken UndoLastEditCommand;
  170.     somMToken DragEnteredViewedText;
  171.     somMToken DragInViewedText;
  172.     somMToken DragLeaveViewedText;
  173.     somMToken Drop;
  174.     somMToken SetTextChangedFlag;
  175.     somMToken ResetTextChangedFlag;
  176.     somMToken IsTextChanged;
  177.     somMToken GetHilileRegionHandle;
  178.     somMToken MouseIsDown;
  179.     somMToken MouseStopped;
  180.     somMToken MouseIsUp;
  181.     somMToken MouseHasMoved;
  182.     somMToken HandleTextAEvent;
  183.     somMToken TextGainKeyboardFocus;
  184.     somMToken TextGiveUpKeyboardFocus;
  185.     somMToken HasKeyboardFocus;
  186.     somMToken TextInputObjectChanged;
  187.     somMToken GetAETable;
  188.     somMToken SetTextMouseDownTrackActionRoutine;
  189.     somMToken EnableUICommand;
  190.     somMToken DisableUICommand;
  191.     somMToken IsUICommandEnabled;
  192.     somMToken DoIDleAction;
  193.     somMToken reserved0;
  194.     somMToken reserved1;
  195. } SOMDLINK TSystemTextEngineClassData;
  196.  
  197. #if PRAGMA_ALIGN_SUPPORTED
  198. #  pragma options align=reset
  199. #endif
  200.  
  201. #if !defined(TSystemTextEngine_Class_Source) && !defined(SOM_Module_textenginesystem_Source)
  202. #if PRAGMA_IMPORT_SUPPORTED
  203. #pragma import list TSystemTextEngineClassData
  204. #endif
  205. #endif
  206.  
  207.  
  208. /*
  209.  * New macro for TSystemTextEngine
  210.  */
  211. #define TSystemTextEngineNew() somNewObject(TSystemTextEngine)
  212.  
  213. /*
  214.  * New Method: InitTextInstance
  215.  */
  216. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_InitTextInstance)(TSystemTextEngine *somSelf, Environment *ev,
  217.         CGrafPtr port,
  218.         Rect* bounds,
  219.         OptionBits textEngineOptions);
  220. #define somMD_TSystemTextEngine_InitTextInstance "::TSystemTextEngine::InitTextInstance"
  221. #define TSystemTextEngine_InitTextInstance(somSelf,ev,port,bounds,textEngineOptions) \
  222.     (SOM_Resolve(somSelf, TSystemTextEngine, InitTextInstance) \
  223.     (somSelf,ev,port,bounds,textEngineOptions))
  224. #ifndef SOMGD_InitTextInstance
  225.     #if defined _InitTextInstance || defined __InitTextInstance
  226.         #undef _InitTextInstance
  227.         #undef __InitTextInstance
  228.         #define SOMGD_InitTextInstance 1
  229.     #else
  230.         #define _InitTextInstance TSystemTextEngine_InitTextInstance
  231.     #endif /* _InitTextInstance */
  232. #endif /* SOMGD_InitTextInstance */
  233.  
  234. /*
  235.  * New Method: SetTextFrameDimensions
  236.  */
  237. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextFrameDimensions)(TSystemTextEngine *somSelf, Environment *ev,
  238.         UInt32 width,
  239.         UInt32 height);
  240. #define somMD_TSystemTextEngine_SetTextFrameDimensions "::TSystemTextEngine::SetTextFrameDimensions"
  241. #define TSystemTextEngine_SetTextFrameDimensions(somSelf,ev,width,height) \
  242.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextFrameDimensions) \
  243.     (somSelf,ev,width,height))
  244. #ifndef SOMGD_SetTextFrameDimensions
  245.     #if defined _SetTextFrameDimensions || defined __SetTextFrameDimensions
  246.         #undef _SetTextFrameDimensions
  247.         #undef __SetTextFrameDimensions
  248.         #define SOMGD_SetTextFrameDimensions 1
  249.     #else
  250.         #define _SetTextFrameDimensions TSystemTextEngine_SetTextFrameDimensions
  251.     #endif /* _SetTextFrameDimensions */
  252. #endif /* SOMGD_SetTextFrameDimensions */
  253.  
  254. /*
  255.  * New Method: GetTextFrameDimensions
  256.  */
  257. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetTextFrameDimensions)(TSystemTextEngine *somSelf, Environment *ev,
  258.         UInt32* width,
  259.         UInt32* height);
  260. #define somMD_TSystemTextEngine_GetTextFrameDimensions "::TSystemTextEngine::GetTextFrameDimensions"
  261. #define TSystemTextEngine_GetTextFrameDimensions(somSelf,ev,width,height) \
  262.     (SOM_Resolve(somSelf, TSystemTextEngine, GetTextFrameDimensions) \
  263.     (somSelf,ev,width,height))
  264. #ifndef SOMGD_GetTextFrameDimensions
  265.     #if defined _GetTextFrameDimensions || defined __GetTextFrameDimensions
  266.         #undef _GetTextFrameDimensions
  267.         #undef __GetTextFrameDimensions
  268.         #define SOMGD_GetTextFrameDimensions 1
  269.     #else
  270.         #define _GetTextFrameDimensions TSystemTextEngine_GetTextFrameDimensions
  271.     #endif /* _GetTextFrameDimensions */
  272. #endif /* SOMGD_GetTextFrameDimensions */
  273.  
  274. /*
  275.  * New Method: SetTextViewFrame
  276.  */
  277. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextViewFrame)(TSystemTextEngine *somSelf, Environment *ev,
  278.         Rect* viewFrameRect);
  279. #define somMD_TSystemTextEngine_SetTextViewFrame "::TSystemTextEngine::SetTextViewFrame"
  280. #define TSystemTextEngine_SetTextViewFrame(somSelf,ev,viewFrameRect) \
  281.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextViewFrame) \
  282.     (somSelf,ev,viewFrameRect))
  283. #ifndef SOMGD_SetTextViewFrame
  284.     #if defined _SetTextViewFrame || defined __SetTextViewFrame
  285.         #undef _SetTextViewFrame
  286.         #undef __SetTextViewFrame
  287.         #define SOMGD_SetTextViewFrame 1
  288.     #else
  289.         #define _SetTextViewFrame TSystemTextEngine_SetTextViewFrame
  290.     #endif /* _SetTextViewFrame */
  291. #endif /* SOMGD_SetTextViewFrame */
  292.  
  293. /*
  294.  * New Method: GetTextViewFrame
  295.  */
  296. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetTextViewFrame)(TSystemTextEngine *somSelf, Environment *ev,
  297.         Rect* viewFrameRect);
  298. #define somMD_TSystemTextEngine_GetTextViewFrame "::TSystemTextEngine::GetTextViewFrame"
  299. #define TSystemTextEngine_GetTextViewFrame(somSelf,ev,viewFrameRect) \
  300.     (SOM_Resolve(somSelf, TSystemTextEngine, GetTextViewFrame) \
  301.     (somSelf,ev,viewFrameRect))
  302. #ifndef SOMGD_GetTextViewFrame
  303.     #if defined _GetTextViewFrame || defined __GetTextViewFrame
  304.         #undef _GetTextViewFrame
  305.         #undef __GetTextViewFrame
  306.         #define SOMGD_GetTextViewFrame 1
  307.     #else
  308.         #define _GetTextViewFrame TSystemTextEngine_GetTextViewFrame
  309.     #endif /* _GetTextViewFrame */
  310. #endif /* SOMGD_GetTextViewFrame */
  311.  
  312. /*
  313.  * New Method: SetTextMargins
  314.  */
  315. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextMargins)(TSystemTextEngine *somSelf, Environment *ev,
  316.         Rect* marginOffsets);
  317. #define somMD_TSystemTextEngine_SetTextMargins "::TSystemTextEngine::SetTextMargins"
  318. #define TSystemTextEngine_SetTextMargins(somSelf,ev,marginOffsets) \
  319.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextMargins) \
  320.     (somSelf,ev,marginOffsets))
  321. #ifndef SOMGD_SetTextMargins
  322.     #if defined _SetTextMargins || defined __SetTextMargins
  323.         #undef _SetTextMargins
  324.         #undef __SetTextMargins
  325.         #define SOMGD_SetTextMargins 1
  326.     #else
  327.         #define _SetTextMargins TSystemTextEngine_SetTextMargins
  328.     #endif /* _SetTextMargins */
  329. #endif /* SOMGD_SetTextMargins */
  330.  
  331. /*
  332.  * New Method: GetTextMargins
  333.  */
  334. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetTextMargins)(TSystemTextEngine *somSelf, Environment *ev,
  335.         Rect* marginOffsets);
  336. #define somMD_TSystemTextEngine_GetTextMargins "::TSystemTextEngine::GetTextMargins"
  337. #define TSystemTextEngine_GetTextMargins(somSelf,ev,marginOffsets) \
  338.     (SOM_Resolve(somSelf, TSystemTextEngine, GetTextMargins) \
  339.     (somSelf,ev,marginOffsets))
  340. #ifndef SOMGD_GetTextMargins
  341.     #if defined _GetTextMargins || defined __GetTextMargins
  342.         #undef _GetTextMargins
  343.         #undef __GetTextMargins
  344.         #define SOMGD_GetTextMargins 1
  345.     #else
  346.         #define _GetTextMargins TSystemTextEngine_GetTextMargins
  347.     #endif /* _GetTextMargins */
  348. #endif /* SOMGD_GetTextMargins */
  349.  
  350. /*
  351.  * New Method: RefreshText
  352.  */
  353. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_RefreshText)(TSystemTextEngine *somSelf, Environment *ev,
  354.         CGrafPtr whichPort,
  355.         Rect* qDRectToUpdate);
  356. #define somMD_TSystemTextEngine_RefreshText "::TSystemTextEngine::RefreshText"
  357. #define TSystemTextEngine_RefreshText(somSelf,ev,whichPort,qDRectToUpdate) \
  358.     (SOM_Resolve(somSelf, TSystemTextEngine, RefreshText) \
  359.     (somSelf,ev,whichPort,qDRectToUpdate))
  360. #ifndef SOMGD_RefreshText
  361.     #if defined _RefreshText || defined __RefreshText
  362.         #undef _RefreshText
  363.         #undef __RefreshText
  364.         #define SOMGD_RefreshText 1
  365.     #else
  366.         #define _RefreshText TSystemTextEngine_RefreshText
  367.     #endif /* _RefreshText */
  368. #endif /* SOMGD_RefreshText */
  369.  
  370. /*
  371.  * New Method: EnableDrawingText
  372.  */
  373. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_EnableDrawingText)(TSystemTextEngine *somSelf, Environment *ev);
  374. #define somMD_TSystemTextEngine_EnableDrawingText "::TSystemTextEngine::EnableDrawingText"
  375. #define TSystemTextEngine_EnableDrawingText(somSelf,ev) \
  376.     (SOM_Resolve(somSelf, TSystemTextEngine, EnableDrawingText) \
  377.     (somSelf,ev))
  378. #ifndef SOMGD_EnableDrawingText
  379.     #if defined _EnableDrawingText || defined __EnableDrawingText
  380.         #undef _EnableDrawingText
  381.         #undef __EnableDrawingText
  382.         #define SOMGD_EnableDrawingText 1
  383.     #else
  384.         #define _EnableDrawingText TSystemTextEngine_EnableDrawingText
  385.     #endif /* _EnableDrawingText */
  386. #endif /* SOMGD_EnableDrawingText */
  387.  
  388. /*
  389.  * New Method: DisableDrawingText
  390.  */
  391. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DisableDrawingText)(TSystemTextEngine *somSelf, Environment *ev);
  392. #define somMD_TSystemTextEngine_DisableDrawingText "::TSystemTextEngine::DisableDrawingText"
  393. #define TSystemTextEngine_DisableDrawingText(somSelf,ev) \
  394.     (SOM_Resolve(somSelf, TSystemTextEngine, DisableDrawingText) \
  395.     (somSelf,ev))
  396. #ifndef SOMGD_DisableDrawingText
  397.     #if defined _DisableDrawingText || defined __DisableDrawingText
  398.         #undef _DisableDrawingText
  399.         #undef __DisableDrawingText
  400.         #define SOMGD_DisableDrawingText 1
  401.     #else
  402.         #define _DisableDrawingText TSystemTextEngine_DisableDrawingText
  403.     #endif /* _DisableDrawingText */
  404. #endif /* SOMGD_DisableDrawingText */
  405.  
  406. /*
  407.  * New Method: IsDrawingTextEnabled
  408.  */
  409. typedef boolean   (SOMLINK *somTD_TSystemTextEngine_IsDrawingTextEnabled)(TSystemTextEngine *somSelf, Environment *ev);
  410. #define somMD_TSystemTextEngine_IsDrawingTextEnabled "::TSystemTextEngine::IsDrawingTextEnabled"
  411. #define TSystemTextEngine_IsDrawingTextEnabled(somSelf,ev) \
  412.     (SOM_Resolve(somSelf, TSystemTextEngine, IsDrawingTextEnabled) \
  413.     (somSelf,ev))
  414. #ifndef SOMGD_IsDrawingTextEnabled
  415.     #if defined _IsDrawingTextEnabled || defined __IsDrawingTextEnabled
  416.         #undef _IsDrawingTextEnabled
  417.         #undef __IsDrawingTextEnabled
  418.         #define SOMGD_IsDrawingTextEnabled 1
  419.     #else
  420.         #define _IsDrawingTextEnabled TSystemTextEngine_IsDrawingTextEnabled
  421.     #endif /* _IsDrawingTextEnabled */
  422. #endif /* SOMGD_IsDrawingTextEnabled */
  423.  
  424. /*
  425.  * New Method: AboutToImage
  426.  */
  427. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_AboutToImage)(TSystemTextEngine *somSelf, Environment *ev,
  428.         Rect* pageDimensions);
  429. #define somMD_TSystemTextEngine_AboutToImage "::TSystemTextEngine::AboutToImage"
  430. #define TSystemTextEngine_AboutToImage(somSelf,ev,pageDimensions) \
  431.     (SOM_Resolve(somSelf, TSystemTextEngine, AboutToImage) \
  432.     (somSelf,ev,pageDimensions))
  433. #ifndef SOMGD_AboutToImage
  434.     #if defined _AboutToImage || defined __AboutToImage
  435.         #undef _AboutToImage
  436.         #undef __AboutToImage
  437.         #define SOMGD_AboutToImage 1
  438.     #else
  439.         #define _AboutToImage TSystemTextEngine_AboutToImage
  440.     #endif /* _AboutToImage */
  441. #endif /* SOMGD_AboutToImage */
  442.  
  443. /*
  444.  * New Method: EndImaging
  445.  */
  446. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_EndImaging)(TSystemTextEngine *somSelf, Environment *ev);
  447. #define somMD_TSystemTextEngine_EndImaging "::TSystemTextEngine::EndImaging"
  448. #define TSystemTextEngine_EndImaging(somSelf,ev) \
  449.     (SOM_Resolve(somSelf, TSystemTextEngine, EndImaging) \
  450.     (somSelf,ev))
  451. #ifndef SOMGD_EndImaging
  452.     #if defined _EndImaging || defined __EndImaging
  453.         #undef _EndImaging
  454.         #undef __EndImaging
  455.         #define SOMGD_EndImaging 1
  456.     #else
  457.         #define _EndImaging TSystemTextEngine_EndImaging
  458.     #endif /* _EndImaging */
  459. #endif /* SOMGD_EndImaging */
  460.  
  461. /*
  462.  * New Method: EnableUICommand
  463.  */
  464. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_EnableUICommand)(TSystemTextEngine *somSelf, Environment *ev);
  465. #define somMD_TSystemTextEngine_EnableUICommand "::TSystemTextEngine::EnableUICommand"
  466. #define TSystemTextEngine_EnableUICommand(somSelf,ev) \
  467.     (SOM_Resolve(somSelf, TSystemTextEngine, EnableUICommand) \
  468.     (somSelf,ev))
  469. #ifndef SOMGD_EnableUICommand
  470.     #if defined _EnableUICommand || defined __EnableUICommand
  471.         #undef _EnableUICommand
  472.         #undef __EnableUICommand
  473.         #define SOMGD_EnableUICommand 1
  474.     #else
  475.         #define _EnableUICommand TSystemTextEngine_EnableUICommand
  476.     #endif /* _EnableUICommand */
  477. #endif /* SOMGD_EnableUICommand */
  478.  
  479. /*
  480.  * New Method: DisableUICommand
  481.  */
  482. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DisableUICommand)(TSystemTextEngine *somSelf, Environment *ev);
  483. #define somMD_TSystemTextEngine_DisableUICommand "::TSystemTextEngine::DisableUICommand"
  484. #define TSystemTextEngine_DisableUICommand(somSelf,ev) \
  485.     (SOM_Resolve(somSelf, TSystemTextEngine, DisableUICommand) \
  486.     (somSelf,ev))
  487. #ifndef SOMGD_DisableUICommand
  488.     #if defined _DisableUICommand || defined __DisableUICommand
  489.         #undef _DisableUICommand
  490.         #undef __DisableUICommand
  491.         #define SOMGD_DisableUICommand 1
  492.     #else
  493.         #define _DisableUICommand TSystemTextEngine_DisableUICommand
  494.     #endif /* _DisableUICommand */
  495. #endif /* SOMGD_DisableUICommand */
  496.  
  497. /*
  498.  * New Method: IsUICommandEnabled
  499.  */
  500. typedef boolean   (SOMLINK *somTD_TSystemTextEngine_IsUICommandEnabled)(TSystemTextEngine *somSelf, Environment *ev);
  501. #define somMD_TSystemTextEngine_IsUICommandEnabled "::TSystemTextEngine::IsUICommandEnabled"
  502. #define TSystemTextEngine_IsUICommandEnabled(somSelf,ev) \
  503.     (SOM_Resolve(somSelf, TSystemTextEngine, IsUICommandEnabled) \
  504.     (somSelf,ev))
  505. #ifndef SOMGD_IsUICommandEnabled
  506.     #if defined _IsUICommandEnabled || defined __IsUICommandEnabled
  507.         #undef _IsUICommandEnabled
  508.         #undef __IsUICommandEnabled
  509.         #define SOMGD_IsUICommandEnabled 1
  510.     #else
  511.         #define _IsUICommandEnabled TSystemTextEngine_IsUICommandEnabled
  512.     #endif /* _IsUICommandEnabled */
  513. #endif /* SOMGD_IsUICommandEnabled */
  514.  
  515. /*
  516.  * New Method: DoIDleAction
  517.  */
  518. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DoIDleAction)(TSystemTextEngine *somSelf, Environment *ev);
  519. #define somMD_TSystemTextEngine_DoIDleAction "::TSystemTextEngine::DoIDleAction"
  520. #define TSystemTextEngine_DoIDleAction(somSelf,ev) \
  521.     (SOM_Resolve(somSelf, TSystemTextEngine, DoIDleAction) \
  522.     (somSelf,ev))
  523. #ifndef SOMGD_DoIDleAction
  524.     #if defined _DoIDleAction || defined __DoIDleAction
  525.         #undef _DoIDleAction
  526.         #undef __DoIDleAction
  527.         #define SOMGD_DoIDleAction 1
  528.     #else
  529.         #define _DoIDleAction TSystemTextEngine_DoIDleAction
  530.     #endif /* _DoIDleAction */
  531. #endif /* SOMGD_DoIDleAction */
  532.  
  533. /*
  534.  * New Method: SetWholeTextTo
  535.  */
  536. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetWholeTextTo)(TSystemTextEngine *somSelf, Environment *ev,
  537.         Ptr textPtr,
  538.         ByteCount textSizeInBytes,
  539.         StScrpPtr styleScrapPtr);
  540. #define somMD_TSystemTextEngine_SetWholeTextTo "::TSystemTextEngine::SetWholeTextTo"
  541. #define TSystemTextEngine_SetWholeTextTo(somSelf,ev,textPtr,textSizeInBytes,styleScrapPtr) \
  542.     (SOM_Resolve(somSelf, TSystemTextEngine, SetWholeTextTo) \
  543.     (somSelf,ev,textPtr,textSizeInBytes,styleScrapPtr))
  544. #ifndef SOMGD_SetWholeTextTo
  545.     #if defined _SetWholeTextTo || defined __SetWholeTextTo
  546.         #undef _SetWholeTextTo
  547.         #undef __SetWholeTextTo
  548.         #define SOMGD_SetWholeTextTo 1
  549.     #else
  550.         #define _SetWholeTextTo TSystemTextEngine_SetWholeTextTo
  551.     #endif /* _SetWholeTextTo */
  552. #endif /* SOMGD_SetWholeTextTo */
  553.  
  554. /*
  555.  * New Method: GetWholeTextSize
  556.  */
  557. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetWholeTextSize)(TSystemTextEngine *somSelf, Environment *ev,
  558.         ByteCount* textSizeInBytes);
  559. #define somMD_TSystemTextEngine_GetWholeTextSize "::TSystemTextEngine::GetWholeTextSize"
  560. #define TSystemTextEngine_GetWholeTextSize(somSelf,ev,textSizeInBytes) \
  561.     (SOM_Resolve(somSelf, TSystemTextEngine, GetWholeTextSize) \
  562.     (somSelf,ev,textSizeInBytes))
  563. #ifndef SOMGD_GetWholeTextSize
  564.     #if defined _GetWholeTextSize || defined __GetWholeTextSize
  565.         #undef _GetWholeTextSize
  566.         #undef __GetWholeTextSize
  567.         #define SOMGD_GetWholeTextSize 1
  568.     #else
  569.         #define _GetWholeTextSize TSystemTextEngine_GetWholeTextSize
  570.     #endif /* _GetWholeTextSize */
  571. #endif /* SOMGD_GetWholeTextSize */
  572.  
  573. /*
  574.  * New Method: WriteWholeTextToPtr
  575.  */
  576. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_WriteWholeTextToPtr)(TSystemTextEngine *somSelf, Environment *ev,
  577.         Ptr textPtr,
  578.         ByteCount storageSize);
  579. #define somMD_TSystemTextEngine_WriteWholeTextToPtr "::TSystemTextEngine::WriteWholeTextToPtr"
  580. #define TSystemTextEngine_WriteWholeTextToPtr(somSelf,ev,textPtr,storageSize) \
  581.     (SOM_Resolve(somSelf, TSystemTextEngine, WriteWholeTextToPtr) \
  582.     (somSelf,ev,textPtr,storageSize))
  583. #ifndef SOMGD_WriteWholeTextToPtr
  584.     #if defined _WriteWholeTextToPtr || defined __WriteWholeTextToPtr
  585.         #undef _WriteWholeTextToPtr
  586.         #undef __WriteWholeTextToPtr
  587.         #define SOMGD_WriteWholeTextToPtr 1
  588.     #else
  589.         #define _WriteWholeTextToPtr TSystemTextEngine_WriteWholeTextToPtr
  590.     #endif /* _WriteWholeTextToPtr */
  591. #endif /* SOMGD_WriteWholeTextToPtr */
  592.  
  593. /*
  594.  * New Method: GetWholeScrapStyleCount
  595.  */
  596. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetWholeScrapStyleCount)(TSystemTextEngine *somSelf, Environment *ev,
  597.         ItemCount* nRuns);
  598. #define somMD_TSystemTextEngine_GetWholeScrapStyleCount "::TSystemTextEngine::GetWholeScrapStyleCount"
  599. #define TSystemTextEngine_GetWholeScrapStyleCount(somSelf,ev,nRuns) \
  600.     (SOM_Resolve(somSelf, TSystemTextEngine, GetWholeScrapStyleCount) \
  601.     (somSelf,ev,nRuns))
  602. #ifndef SOMGD_GetWholeScrapStyleCount
  603.     #if defined _GetWholeScrapStyleCount || defined __GetWholeScrapStyleCount
  604.         #undef _GetWholeScrapStyleCount
  605.         #undef __GetWholeScrapStyleCount
  606.         #define SOMGD_GetWholeScrapStyleCount 1
  607.     #else
  608.         #define _GetWholeScrapStyleCount TSystemTextEngine_GetWholeScrapStyleCount
  609.     #endif /* _GetWholeScrapStyleCount */
  610. #endif /* SOMGD_GetWholeScrapStyleCount */
  611.  
  612. /*
  613.  * New Method: WriteWholeScrapStyleToPtr
  614.  */
  615. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_WriteWholeScrapStyleToPtr)(TSystemTextEngine *somSelf, Environment *ev,
  616.         StScrpPtr styleScrapPtr,
  617.         ItemCount nRuns);
  618. #define somMD_TSystemTextEngine_WriteWholeScrapStyleToPtr "::TSystemTextEngine::WriteWholeScrapStyleToPtr"
  619. #define TSystemTextEngine_WriteWholeScrapStyleToPtr(somSelf,ev,styleScrapPtr,nRuns) \
  620.     (SOM_Resolve(somSelf, TSystemTextEngine, WriteWholeScrapStyleToPtr) \
  621.     (somSelf,ev,styleScrapPtr,nRuns))
  622. #ifndef SOMGD_WriteWholeScrapStyleToPtr
  623.     #if defined _WriteWholeScrapStyleToPtr || defined __WriteWholeScrapStyleToPtr
  624.         #undef _WriteWholeScrapStyleToPtr
  625.         #undef __WriteWholeScrapStyleToPtr
  626.         #define SOMGD_WriteWholeScrapStyleToPtr 1
  627.     #else
  628.         #define _WriteWholeScrapStyleToPtr TSystemTextEngine_WriteWholeScrapStyleToPtr
  629.     #endif /* _WriteWholeScrapStyleToPtr */
  630. #endif /* SOMGD_WriteWholeScrapStyleToPtr */
  631.  
  632. /*
  633.  * New Method: GetStorageSizeForTextDataStructure
  634.  */
  635. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetStorageSizeForTextDataStructure)(TSystemTextEngine *somSelf, Environment *ev,
  636.         ByteCount* textInstanceStorageSizeInBytes);
  637. #define somMD_TSystemTextEngine_GetStorageSizeForTextDataStructure "::TSystemTextEngine::GetStorageSizeForTextDataStructure"
  638. #define TSystemTextEngine_GetStorageSizeForTextDataStructure(somSelf,ev,textInstanceStorageSizeInBytes) \
  639.     (SOM_Resolve(somSelf, TSystemTextEngine, GetStorageSizeForTextDataStructure) \
  640.     (somSelf,ev,textInstanceStorageSizeInBytes))
  641. #ifndef SOMGD_GetStorageSizeForTextDataStructure
  642.     #if defined _GetStorageSizeForTextDataStructure || defined __GetStorageSizeForTextDataStructure
  643.         #undef _GetStorageSizeForTextDataStructure
  644.         #undef __GetStorageSizeForTextDataStructure
  645.         #define SOMGD_GetStorageSizeForTextDataStructure 1
  646.     #else
  647.         #define _GetStorageSizeForTextDataStructure TSystemTextEngine_GetStorageSizeForTextDataStructure
  648.     #endif /* _GetStorageSizeForTextDataStructure */
  649. #endif /* SOMGD_GetStorageSizeForTextDataStructure */
  650.  
  651. /*
  652.  * New Method: SaveDataStructureToPtr
  653.  */
  654. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SaveDataStructureToPtr)(TSystemTextEngine *somSelf, Environment *ev,
  655.         Ptr theStorage,
  656.         ByteCount storageSizeAvailable);
  657. #define somMD_TSystemTextEngine_SaveDataStructureToPtr "::TSystemTextEngine::SaveDataStructureToPtr"
  658. #define TSystemTextEngine_SaveDataStructureToPtr(somSelf,ev,theStorage,storageSizeAvailable) \
  659.     (SOM_Resolve(somSelf, TSystemTextEngine, SaveDataStructureToPtr) \
  660.     (somSelf,ev,theStorage,storageSizeAvailable))
  661. #ifndef SOMGD_SaveDataStructureToPtr
  662.     #if defined _SaveDataStructureToPtr || defined __SaveDataStructureToPtr
  663.         #undef _SaveDataStructureToPtr
  664.         #undef __SaveDataStructureToPtr
  665.         #define SOMGD_SaveDataStructureToPtr 1
  666.     #else
  667.         #define _SaveDataStructureToPtr TSystemTextEngine_SaveDataStructureToPtr
  668.     #endif /* _SaveDataStructureToPtr */
  669. #endif /* SOMGD_SaveDataStructureToPtr */
  670.  
  671. /*
  672.  * New Method: ReadDataStructureFromPtr
  673.  */
  674. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ReadDataStructureFromPtr)(TSystemTextEngine *somSelf, Environment *ev,
  675.         Ptr theStorage,
  676.         ByteCount storageSize);
  677. #define somMD_TSystemTextEngine_ReadDataStructureFromPtr "::TSystemTextEngine::ReadDataStructureFromPtr"
  678. #define TSystemTextEngine_ReadDataStructureFromPtr(somSelf,ev,theStorage,storageSize) \
  679.     (SOM_Resolve(somSelf, TSystemTextEngine, ReadDataStructureFromPtr) \
  680.     (somSelf,ev,theStorage,storageSize))
  681. #ifndef SOMGD_ReadDataStructureFromPtr
  682.     #if defined _ReadDataStructureFromPtr || defined __ReadDataStructureFromPtr
  683.         #undef _ReadDataStructureFromPtr
  684.         #undef __ReadDataStructureFromPtr
  685.         #define SOMGD_ReadDataStructureFromPtr 1
  686.     #else
  687.         #define _ReadDataStructureFromPtr TSystemTextEngine_ReadDataStructureFromPtr
  688.     #endif /* _ReadDataStructureFromPtr */
  689. #endif /* SOMGD_ReadDataStructureFromPtr */
  690.  
  691. /*
  692.  * New Method: SetText
  693.  */
  694. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetText)(TSystemTextEngine *somSelf, Environment *ev,
  695.         ByteOffset startIndex,
  696.         ByteOffset endIndex,
  697.         TextObject theText);
  698. #define somMD_TSystemTextEngine_SetText "::TSystemTextEngine::SetText"
  699. #define TSystemTextEngine_SetText(somSelf,ev,startIndex,endIndex,theText) \
  700.     (SOM_Resolve(somSelf, TSystemTextEngine, SetText) \
  701.     (somSelf,ev,startIndex,endIndex,theText))
  702. #ifndef SOMGD_SetText
  703.     #if defined _SetText || defined __SetText
  704.         #undef _SetText
  705.         #undef __SetText
  706.         #define SOMGD_SetText 1
  707.     #else
  708.         #define _SetText TSystemTextEngine_SetText
  709.     #endif /* _SetText */
  710. #endif /* SOMGD_SetText */
  711.  
  712. /*
  713.  * New Method: InsertText
  714.  */
  715. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_InsertText)(TSystemTextEngine *somSelf, Environment *ev,
  716.         TextObject theText);
  717. #define somMD_TSystemTextEngine_InsertText "::TSystemTextEngine::InsertText"
  718. #define TSystemTextEngine_InsertText(somSelf,ev,theText) \
  719.     (SOM_Resolve(somSelf, TSystemTextEngine, InsertText) \
  720.     (somSelf,ev,theText))
  721. #ifndef SOMGD_InsertText
  722.     #if defined _InsertText || defined __InsertText
  723.         #undef _InsertText
  724.         #undef __InsertText
  725.         #define SOMGD_InsertText 1
  726.     #else
  727.         #define _InsertText TSystemTextEngine_InsertText
  728.     #endif /* _InsertText */
  729. #endif /* SOMGD_InsertText */
  730.  
  731. /*
  732.  * New Method: DeleteText
  733.  */
  734. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DeleteText)(TSystemTextEngine *somSelf, Environment *ev,
  735.         ByteOffset startIndex,
  736.         ByteOffset endIndex);
  737. #define somMD_TSystemTextEngine_DeleteText "::TSystemTextEngine::DeleteText"
  738. #define TSystemTextEngine_DeleteText(somSelf,ev,startIndex,endIndex) \
  739.     (SOM_Resolve(somSelf, TSystemTextEngine, DeleteText) \
  740.     (somSelf,ev,startIndex,endIndex))
  741. #ifndef SOMGD_DeleteText
  742.     #if defined _DeleteText || defined __DeleteText
  743.         #undef _DeleteText
  744.         #undef __DeleteText
  745.         #define SOMGD_DeleteText 1
  746.     #else
  747.         #define _DeleteText TSystemTextEngine_DeleteText
  748.     #endif /* _DeleteText */
  749. #endif /* SOMGD_DeleteText */
  750.  
  751. /*
  752.  * New Method: GetText
  753.  */
  754. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetText)(TSystemTextEngine *somSelf, Environment *ev,
  755.         ByteOffset startIndex,
  756.         ByteOffset endIndex,
  757.         TextObject* newTextObject);
  758. #define somMD_TSystemTextEngine_GetText "::TSystemTextEngine::GetText"
  759. #define TSystemTextEngine_GetText(somSelf,ev,startIndex,endIndex,newTextObject) \
  760.     (SOM_Resolve(somSelf, TSystemTextEngine, GetText) \
  761.     (somSelf,ev,startIndex,endIndex,newTextObject))
  762. #ifndef SOMGD_GetText
  763.     #if defined _GetText || defined __GetText
  764.         #undef _GetText
  765.         #undef __GetText
  766.         #define SOMGD_GetText 1
  767.     #else
  768.         #define _GetText TSystemTextEngine_GetText
  769.     #endif /* _GetText */
  770. #endif /* SOMGD_GetText */
  771.  
  772. /*
  773.  * New Method: SelectTextRange
  774.  */
  775. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SelectTextRange)(TSystemTextEngine *somSelf, Environment *ev,
  776.         ByteOffset startIndex,
  777.         ByteOffset endIndex);
  778. #define somMD_TSystemTextEngine_SelectTextRange "::TSystemTextEngine::SelectTextRange"
  779. #define TSystemTextEngine_SelectTextRange(somSelf,ev,startIndex,endIndex) \
  780.     (SOM_Resolve(somSelf, TSystemTextEngine, SelectTextRange) \
  781.     (somSelf,ev,startIndex,endIndex))
  782. #ifndef SOMGD_SelectTextRange
  783.     #if defined _SelectTextRange || defined __SelectTextRange
  784.         #undef _SelectTextRange
  785.         #undef __SelectTextRange
  786.         #define SOMGD_SelectTextRange 1
  787.     #else
  788.         #define _SelectTextRange TSystemTextEngine_SelectTextRange
  789.     #endif /* _SelectTextRange */
  790. #endif /* SOMGD_SelectTextRange */
  791.  
  792. /*
  793.  * New Method: GetSelectedTextRange
  794.  */
  795. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetSelectedTextRange)(TSystemTextEngine *somSelf, Environment *ev,
  796.         ByteOffset* startIndex,
  797.         ByteOffset* endIndex);
  798. #define somMD_TSystemTextEngine_GetSelectedTextRange "::TSystemTextEngine::GetSelectedTextRange"
  799. #define TSystemTextEngine_GetSelectedTextRange(somSelf,ev,startIndex,endIndex) \
  800.     (SOM_Resolve(somSelf, TSystemTextEngine, GetSelectedTextRange) \
  801.     (somSelf,ev,startIndex,endIndex))
  802. #ifndef SOMGD_GetSelectedTextRange
  803.     #if defined _GetSelectedTextRange || defined __GetSelectedTextRange
  804.         #undef _GetSelectedTextRange
  805.         #undef __GetSelectedTextRange
  806.         #define SOMGD_GetSelectedTextRange 1
  807.     #else
  808.         #define _GetSelectedTextRange TSystemTextEngine_GetSelectedTextRange
  809.     #endif /* _GetSelectedTextRange */
  810. #endif /* SOMGD_GetSelectedTextRange */
  811.  
  812. /*
  813.  * New Method: RevealTextRange
  814.  */
  815. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_RevealTextRange)(TSystemTextEngine *somSelf, Environment *ev,
  816.         ByteOffset startIndex,
  817.         ByteOffset endIndex,
  818.         boolean revealBegin);
  819. #define somMD_TSystemTextEngine_RevealTextRange "::TSystemTextEngine::RevealTextRange"
  820. #define TSystemTextEngine_RevealTextRange(somSelf,ev,startIndex,endIndex,revealBegin) \
  821.     (SOM_Resolve(somSelf, TSystemTextEngine, RevealTextRange) \
  822.     (somSelf,ev,startIndex,endIndex,revealBegin))
  823. #ifndef SOMGD_RevealTextRange
  824.     #if defined _RevealTextRange || defined __RevealTextRange
  825.         #undef _RevealTextRange
  826.         #undef __RevealTextRange
  827.         #define SOMGD_RevealTextRange 1
  828.     #else
  829.         #define _RevealTextRange TSystemTextEngine_RevealTextRange
  830.     #endif /* _RevealTextRange */
  831. #endif /* SOMGD_RevealTextRange */
  832.  
  833. /*
  834.  * New Method: ScrollTextViewTo
  835.  */
  836. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ScrollTextViewTo)(TSystemTextEngine *somSelf, Environment *ev,
  837.         UInt32 dh,
  838.         UInt32 dv);
  839. #define somMD_TSystemTextEngine_ScrollTextViewTo "::TSystemTextEngine::ScrollTextViewTo"
  840. #define TSystemTextEngine_ScrollTextViewTo(somSelf,ev,dh,dv) \
  841.     (SOM_Resolve(somSelf, TSystemTextEngine, ScrollTextViewTo) \
  842.     (somSelf,ev,dh,dv))
  843. #ifndef SOMGD_ScrollTextViewTo
  844.     #if defined _ScrollTextViewTo || defined __ScrollTextViewTo
  845.         #undef _ScrollTextViewTo
  846.         #undef __ScrollTextViewTo
  847.         #define SOMGD_ScrollTextViewTo 1
  848.     #else
  849.         #define _ScrollTextViewTo TSystemTextEngine_ScrollTextViewTo
  850.     #endif /* _ScrollTextViewTo */
  851. #endif /* SOMGD_ScrollTextViewTo */
  852.  
  853. /*
  854.  * New Method: GetScroll
  855.  */
  856. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetScroll)(TSystemTextEngine *somSelf, Environment *ev,
  857.         UInt32* dh,
  858.         UInt32* dv);
  859. #define somMD_TSystemTextEngine_GetScroll "::TSystemTextEngine::GetScroll"
  860. #define TSystemTextEngine_GetScroll(somSelf,ev,dh,dv) \
  861.     (SOM_Resolve(somSelf, TSystemTextEngine, GetScroll) \
  862.     (somSelf,ev,dh,dv))
  863. #ifndef SOMGD_GetScroll
  864.     #if defined _GetScroll || defined __GetScroll
  865.         #undef _GetScroll
  866.         #undef __GetScroll
  867.         #define SOMGD_GetScroll 1
  868.     #else
  869.         #define _GetScroll TSystemTextEngine_GetScroll
  870.     #endif /* _GetScroll */
  871. #endif /* SOMGD_GetScroll */
  872.  
  873. /*
  874.  * New Method: GetTextHeight
  875.  */
  876. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetTextHeight)(TSystemTextEngine *somSelf, Environment *ev,
  877.         ByteOffset startIndex,
  878.         ByteOffset endIndex,
  879.         UInt32* height);
  880. #define somMD_TSystemTextEngine_GetTextHeight "::TSystemTextEngine::GetTextHeight"
  881. #define TSystemTextEngine_GetTextHeight(somSelf,ev,startIndex,endIndex,height) \
  882.     (SOM_Resolve(somSelf, TSystemTextEngine, GetTextHeight) \
  883.     (somSelf,ev,startIndex,endIndex,height))
  884. #ifndef SOMGD_GetTextHeight
  885.     #if defined _GetTextHeight || defined __GetTextHeight
  886.         #undef _GetTextHeight
  887.         #undef __GetTextHeight
  888.         #define SOMGD_GetTextHeight 1
  889.     #else
  890.         #define _GetTextHeight TSystemTextEngine_GetTextHeight
  891.     #endif /* _GetTextHeight */
  892. #endif /* SOMGD_GetTextHeight */
  893.  
  894. /*
  895.  * New Method: SetTextAttribute
  896.  */
  897. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
  898.         ByteOffset startIndex,
  899.         ByteOffset endIndex,
  900.         TextAttributeTag theAttribute,
  901.         void* theValuePtr,
  902.         ByteCount theValueSize);
  903. #define somMD_TSystemTextEngine_SetTextAttribute "::TSystemTextEngine::SetTextAttribute"
  904. #define TSystemTextEngine_SetTextAttribute(somSelf,ev,startIndex,endIndex,theAttribute,theValuePtr,theValueSize) \
  905.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextAttribute) \
  906.     (somSelf,ev,startIndex,endIndex,theAttribute,theValuePtr,theValueSize))
  907. #ifndef SOMGD_SetTextAttribute
  908.     #if defined _SetTextAttribute || defined __SetTextAttribute
  909.         #undef _SetTextAttribute
  910.         #undef __SetTextAttribute
  911.         #define SOMGD_SetTextAttribute 1
  912.     #else
  913.         #define _SetTextAttribute TSystemTextEngine_SetTextAttribute
  914.     #endif /* _SetTextAttribute */
  915. #endif /* SOMGD_SetTextAttribute */
  916.  
  917. /*
  918.  * New Method: GetTextAttribute
  919.  */
  920. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
  921.         ByteOffset startIndex,
  922.         ByteOffset endIndex,
  923.         TextAttributeTag theAttribute,
  924.         ByteCount theAvailableSize,
  925.         void** theValuePtr,
  926.         ByteCount* theValueSize);
  927. #define somMD_TSystemTextEngine_GetTextAttribute "::TSystemTextEngine::GetTextAttribute"
  928. #define TSystemTextEngine_GetTextAttribute(somSelf,ev,startIndex,endIndex,theAttribute,theAvailableSize,theValuePtr,theValueSize) \
  929.     (SOM_Resolve(somSelf, TSystemTextEngine, GetTextAttribute) \
  930.     (somSelf,ev,startIndex,endIndex,theAttribute,theAvailableSize,theValuePtr,theValueSize))
  931. #ifndef SOMGD_GetTextAttribute
  932.     #if defined _GetTextAttribute || defined __GetTextAttribute
  933.         #undef _GetTextAttribute
  934.         #undef __GetTextAttribute
  935.         #define SOMGD_GetTextAttribute 1
  936.     #else
  937.         #define _GetTextAttribute TSystemTextEngine_GetTextAttribute
  938.     #endif /* _GetTextAttribute */
  939. #endif /* SOMGD_GetTextAttribute */
  940.  
  941. /*
  942.  * New Method: NewTextAttributeIterator
  943.  */
  944. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_NewTextAttributeIterator)(TSystemTextEngine *somSelf, Environment *ev,
  945.         ByteOffset startIndex,
  946.         ByteOffset endIndex,
  947.         Collection textAttributeFilterCollection,
  948.         TextAttributeIteratorRef* iterationRef);
  949. #define somMD_TSystemTextEngine_NewTextAttributeIterator "::TSystemTextEngine::NewTextAttributeIterator"
  950. #define TSystemTextEngine_NewTextAttributeIterator(somSelf,ev,startIndex,endIndex,textAttributeFilterCollection,iterationRef) \
  951.     (SOM_Resolve(somSelf, TSystemTextEngine, NewTextAttributeIterator) \
  952.     (somSelf,ev,startIndex,endIndex,textAttributeFilterCollection,iterationRef))
  953. #ifndef SOMGD_NewTextAttributeIterator
  954.     #if defined _NewTextAttributeIterator || defined __NewTextAttributeIterator
  955.         #undef _NewTextAttributeIterator
  956.         #undef __NewTextAttributeIterator
  957.         #define SOMGD_NewTextAttributeIterator 1
  958.     #else
  959.         #define _NewTextAttributeIterator TSystemTextEngine_NewTextAttributeIterator
  960.     #endif /* _NewTextAttributeIterator */
  961. #endif /* SOMGD_NewTextAttributeIterator */
  962.  
  963. /*
  964.  * New Method: TextAttributeIterateForward
  965.  */
  966. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_TextAttributeIterateForward)(TSystemTextEngine *somSelf, Environment *ev,
  967.         TextAttributeIteratorRef iterationRef,
  968.         ByteOffset* startIndex,
  969.         ByteOffset* endIndex,
  970.         Collection textAttrCollection);
  971. #define somMD_TSystemTextEngine_TextAttributeIterateForward "::TSystemTextEngine::TextAttributeIterateForward"
  972. #define TSystemTextEngine_TextAttributeIterateForward(somSelf,ev,iterationRef,startIndex,endIndex,textAttrCollection) \
  973.     (SOM_Resolve(somSelf, TSystemTextEngine, TextAttributeIterateForward) \
  974.     (somSelf,ev,iterationRef,startIndex,endIndex,textAttrCollection))
  975. #ifndef SOMGD_TextAttributeIterateForward
  976.     #if defined _TextAttributeIterateForward || defined __TextAttributeIterateForward
  977.         #undef _TextAttributeIterateForward
  978.         #undef __TextAttributeIterateForward
  979.         #define SOMGD_TextAttributeIterateForward 1
  980.     #else
  981.         #define _TextAttributeIterateForward TSystemTextEngine_TextAttributeIterateForward
  982.     #endif /* _TextAttributeIterateForward */
  983. #endif /* SOMGD_TextAttributeIterateForward */
  984.  
  985. /*
  986.  * New Method: DisposeTextAttributeIterator
  987.  */
  988. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DisposeTextAttributeIterator)(TSystemTextEngine *somSelf, Environment *ev,
  989.         TextAttributeIteratorRef iterationRef);
  990. #define somMD_TSystemTextEngine_DisposeTextAttributeIterator "::TSystemTextEngine::DisposeTextAttributeIterator"
  991. #define TSystemTextEngine_DisposeTextAttributeIterator(somSelf,ev,iterationRef) \
  992.     (SOM_Resolve(somSelf, TSystemTextEngine, DisposeTextAttributeIterator) \
  993.     (somSelf,ev,iterationRef))
  994. #ifndef SOMGD_DisposeTextAttributeIterator
  995.     #if defined _DisposeTextAttributeIterator || defined __DisposeTextAttributeIterator
  996.         #undef _DisposeTextAttributeIterator
  997.         #undef __DisposeTextAttributeIterator
  998.         #define SOMGD_DisposeTextAttributeIterator 1
  999.     #else
  1000.         #define _DisposeTextAttributeIterator TSystemTextEngine_DisposeTextAttributeIterator
  1001.     #endif /* _DisposeTextAttributeIterator */
  1002. #endif /* SOMGD_DisposeTextAttributeIterator */
  1003.  
  1004. /*
  1005.  * New Method: SetTextCollectionAttribute
  1006.  */
  1007. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextCollectionAttribute)(TSystemTextEngine *somSelf, Environment *ev,
  1008.         ByteOffset startIndex,
  1009.         ByteOffset endIndex,
  1010.         Collection textAttrCollection);
  1011. #define somMD_TSystemTextEngine_SetTextCollectionAttribute "::TSystemTextEngine::SetTextCollectionAttribute"
  1012. #define TSystemTextEngine_SetTextCollectionAttribute(somSelf,ev,startIndex,endIndex,textAttrCollection) \
  1013.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextCollectionAttribute) \
  1014.     (somSelf,ev,startIndex,endIndex,textAttrCollection))
  1015. #ifndef SOMGD_SetTextCollectionAttribute
  1016.     #if defined _SetTextCollectionAttribute || defined __SetTextCollectionAttribute
  1017.         #undef _SetTextCollectionAttribute
  1018.         #undef __SetTextCollectionAttribute
  1019.         #define SOMGD_SetTextCollectionAttribute 1
  1020.     #else
  1021.         #define _SetTextCollectionAttribute TSystemTextEngine_SetTextCollectionAttribute
  1022.     #endif /* _SetTextCollectionAttribute */
  1023. #endif /* SOMGD_SetTextCollectionAttribute */
  1024.  
  1025. /*
  1026.  * New Method: GetSharedTextAttribute
  1027.  */
  1028. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetSharedTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
  1029.         ByteOffset startIndex,
  1030.         ByteOffset endIndex,
  1031.         Collection textAttrCollection);
  1032. #define somMD_TSystemTextEngine_GetSharedTextAttribute "::TSystemTextEngine::GetSharedTextAttribute"
  1033. #define TSystemTextEngine_GetSharedTextAttribute(somSelf,ev,startIndex,endIndex,textAttrCollection) \
  1034.     (SOM_Resolve(somSelf, TSystemTextEngine, GetSharedTextAttribute) \
  1035.     (somSelf,ev,startIndex,endIndex,textAttrCollection))
  1036. #ifndef SOMGD_GetSharedTextAttribute
  1037.     #if defined _GetSharedTextAttribute || defined __GetSharedTextAttribute
  1038.         #undef _GetSharedTextAttribute
  1039.         #undef __GetSharedTextAttribute
  1040.         #define SOMGD_GetSharedTextAttribute 1
  1041.     #else
  1042.         #define _GetSharedTextAttribute TSystemTextEngine_GetSharedTextAttribute
  1043.     #endif /* _GetSharedTextAttribute */
  1044. #endif /* SOMGD_GetSharedTextAttribute */
  1045.  
  1046. /*
  1047.  * New Method: GetNextTextElement
  1048.  */
  1049. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetNextTextElement)(TSystemTextEngine *somSelf, Environment *ev,
  1050.         ByteOffset fromIndex,
  1051.         TextIterationtype elmentType,
  1052.         ByteOffset* startIndex,
  1053.         ByteOffset* endIndex);
  1054. #define somMD_TSystemTextEngine_GetNextTextElement "::TSystemTextEngine::GetNextTextElement"
  1055. #define TSystemTextEngine_GetNextTextElement(somSelf,ev,fromIndex,elmentType,startIndex,endIndex) \
  1056.     (SOM_Resolve(somSelf, TSystemTextEngine, GetNextTextElement) \
  1057.     (somSelf,ev,fromIndex,elmentType,startIndex,endIndex))
  1058. #ifndef SOMGD_GetNextTextElement
  1059.     #if defined _GetNextTextElement || defined __GetNextTextElement
  1060.         #undef _GetNextTextElement
  1061.         #undef __GetNextTextElement
  1062.         #define SOMGD_GetNextTextElement 1
  1063.     #else
  1064.         #define _GetNextTextElement TSystemTextEngine_GetNextTextElement
  1065.     #endif /* _GetNextTextElement */
  1066. #endif /* SOMGD_GetNextTextElement */
  1067.  
  1068. /*
  1069.  * New Method: GetPriorTextElement
  1070.  */
  1071. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetPriorTextElement)(TSystemTextEngine *somSelf, Environment *ev,
  1072.         ByteOffset fromIndex,
  1073.         TextIterationtype elmentType,
  1074.         ByteOffset* startIndex,
  1075.         ByteOffset* endIndex);
  1076. #define somMD_TSystemTextEngine_GetPriorTextElement "::TSystemTextEngine::GetPriorTextElement"
  1077. #define TSystemTextEngine_GetPriorTextElement(somSelf,ev,fromIndex,elmentType,startIndex,endIndex) \
  1078.     (SOM_Resolve(somSelf, TSystemTextEngine, GetPriorTextElement) \
  1079.     (somSelf,ev,fromIndex,elmentType,startIndex,endIndex))
  1080. #ifndef SOMGD_GetPriorTextElement
  1081.     #if defined _GetPriorTextElement || defined __GetPriorTextElement
  1082.         #undef _GetPriorTextElement
  1083.         #undef __GetPriorTextElement
  1084.         #define SOMGD_GetPriorTextElement 1
  1085.     #else
  1086.         #define _GetPriorTextElement TSystemTextEngine_GetPriorTextElement
  1087.     #endif /* _GetPriorTextElement */
  1088. #endif /* SOMGD_GetPriorTextElement */
  1089.  
  1090. /*
  1091.  * New Method: GetEnclosingTextElement
  1092.  */
  1093. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetEnclosingTextElement)(TSystemTextEngine *somSelf, Environment *ev,
  1094.         ByteOffset fromIndex,
  1095.         TextIterationtype elmentType,
  1096.         ByteOffset* startIndex,
  1097.         ByteOffset* endIndex);
  1098. #define somMD_TSystemTextEngine_GetEnclosingTextElement "::TSystemTextEngine::GetEnclosingTextElement"
  1099. #define TSystemTextEngine_GetEnclosingTextElement(somSelf,ev,fromIndex,elmentType,startIndex,endIndex) \
  1100.     (SOM_Resolve(somSelf, TSystemTextEngine, GetEnclosingTextElement) \
  1101.     (somSelf,ev,fromIndex,elmentType,startIndex,endIndex))
  1102. #ifndef SOMGD_GetEnclosingTextElement
  1103.     #if defined _GetEnclosingTextElement || defined __GetEnclosingTextElement
  1104.         #undef _GetEnclosingTextElement
  1105.         #undef __GetEnclosingTextElement
  1106.         #define SOMGD_GetEnclosingTextElement 1
  1107.     #else
  1108.         #define _GetEnclosingTextElement TSystemTextEngine_GetEnclosingTextElement
  1109.     #endif /* _GetEnclosingTextElement */
  1110. #endif /* SOMGD_GetEnclosingTextElement */
  1111.  
  1112. /*
  1113.  * New Method: ByteOffsetToPixel
  1114.  */
  1115. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ByteOffsetToPixel)(TSystemTextEngine *somSelf, Environment *ev,
  1116.         ByteOffset offset,
  1117.         Point* pixel);
  1118. #define somMD_TSystemTextEngine_ByteOffsetToPixel "::TSystemTextEngine::ByteOffsetToPixel"
  1119. #define TSystemTextEngine_ByteOffsetToPixel(somSelf,ev,offset,pixel) \
  1120.     (SOM_Resolve(somSelf, TSystemTextEngine, ByteOffsetToPixel) \
  1121.     (somSelf,ev,offset,pixel))
  1122. #ifndef SOMGD_ByteOffsetToPixel
  1123.     #if defined _ByteOffsetToPixel || defined __ByteOffsetToPixel
  1124.         #undef _ByteOffsetToPixel
  1125.         #undef __ByteOffsetToPixel
  1126.         #define SOMGD_ByteOffsetToPixel 1
  1127.     #else
  1128.         #define _ByteOffsetToPixel TSystemTextEngine_ByteOffsetToPixel
  1129.     #endif /* _ByteOffsetToPixel */
  1130. #endif /* SOMGD_ByteOffsetToPixel */
  1131.  
  1132. /*
  1133.  * New Method: PixelToByteOffset
  1134.  */
  1135. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_PixelToByteOffset)(TSystemTextEngine *somSelf, Environment *ev,
  1136.         Point* pixel,
  1137.         ByteOffset* offset);
  1138. #define somMD_TSystemTextEngine_PixelToByteOffset "::TSystemTextEngine::PixelToByteOffset"
  1139. #define TSystemTextEngine_PixelToByteOffset(somSelf,ev,pixel,offset) \
  1140.     (SOM_Resolve(somSelf, TSystemTextEngine, PixelToByteOffset) \
  1141.     (somSelf,ev,pixel,offset))
  1142. #ifndef SOMGD_PixelToByteOffset
  1143.     #if defined _PixelToByteOffset || defined __PixelToByteOffset
  1144.         #undef _PixelToByteOffset
  1145.         #undef __PixelToByteOffset
  1146.         #define SOMGD_PixelToByteOffset 1
  1147.     #else
  1148.         #define _PixelToByteOffset TSystemTextEngine_PixelToByteOffset
  1149.     #endif /* _PixelToByteOffset */
  1150. #endif /* SOMGD_PixelToByteOffset */
  1151.  
  1152. /*
  1153.  * New Method: ByteOffsetToWord
  1154.  */
  1155. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ByteOffsetToWord)(TSystemTextEngine *somSelf, Environment *ev,
  1156.         ByteOffset offset,
  1157.         ByteOffset* startIndex,
  1158.         ByteOffset* endIndex);
  1159. #define somMD_TSystemTextEngine_ByteOffsetToWord "::TSystemTextEngine::ByteOffsetToWord"
  1160. #define TSystemTextEngine_ByteOffsetToWord(somSelf,ev,offset,startIndex,endIndex) \
  1161.     (SOM_Resolve(somSelf, TSystemTextEngine, ByteOffsetToWord) \
  1162.     (somSelf,ev,offset,startIndex,endIndex))
  1163. #ifndef SOMGD_ByteOffsetToWord
  1164.     #if defined _ByteOffsetToWord || defined __ByteOffsetToWord
  1165.         #undef _ByteOffsetToWord
  1166.         #undef __ByteOffsetToWord
  1167.         #define SOMGD_ByteOffsetToWord 1
  1168.     #else
  1169.         #define _ByteOffsetToWord TSystemTextEngine_ByteOffsetToWord
  1170.     #endif /* _ByteOffsetToWord */
  1171. #endif /* SOMGD_ByteOffsetToWord */
  1172.  
  1173. /*
  1174.  * New Method: NthWordInRange
  1175.  */
  1176. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_NthWordInRange)(TSystemTextEngine *somSelf, Environment *ev,
  1177.         ByteOffset startRangeOffset,
  1178.         ByteOffset endRangeOffset,
  1179.         ItemCount wordIndex,
  1180.         ByteOffset* startIndex,
  1181.         ByteOffset* endIndex);
  1182. #define somMD_TSystemTextEngine_NthWordInRange "::TSystemTextEngine::NthWordInRange"
  1183. #define TSystemTextEngine_NthWordInRange(somSelf,ev,startRangeOffset,endRangeOffset,wordIndex,startIndex,endIndex) \
  1184.     (SOM_Resolve(somSelf, TSystemTextEngine, NthWordInRange) \
  1185.     (somSelf,ev,startRangeOffset,endRangeOffset,wordIndex,startIndex,endIndex))
  1186. #ifndef SOMGD_NthWordInRange
  1187.     #if defined _NthWordInRange || defined __NthWordInRange
  1188.         #undef _NthWordInRange
  1189.         #undef __NthWordInRange
  1190.         #define SOMGD_NthWordInRange 1
  1191.     #else
  1192.         #define _NthWordInRange TSystemTextEngine_NthWordInRange
  1193.     #endif /* _NthWordInRange */
  1194. #endif /* SOMGD_NthWordInRange */
  1195.  
  1196. /*
  1197.  * New Method: LineToByteOffsets
  1198.  */
  1199. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_LineToByteOffsets)(TSystemTextEngine *somSelf, Environment *ev,
  1200.         ItemCount lineNo,
  1201.         ByteOffset* startIndex,
  1202.         ByteOffset* endIndex);
  1203. #define somMD_TSystemTextEngine_LineToByteOffsets "::TSystemTextEngine::LineToByteOffsets"
  1204. #define TSystemTextEngine_LineToByteOffsets(somSelf,ev,lineNo,startIndex,endIndex) \
  1205.     (SOM_Resolve(somSelf, TSystemTextEngine, LineToByteOffsets) \
  1206.     (somSelf,ev,lineNo,startIndex,endIndex))
  1207. #ifndef SOMGD_LineToByteOffsets
  1208.     #if defined _LineToByteOffsets || defined __LineToByteOffsets
  1209.         #undef _LineToByteOffsets
  1210.         #undef __LineToByteOffsets
  1211.         #define SOMGD_LineToByteOffsets 1
  1212.     #else
  1213.         #define _LineToByteOffsets TSystemTextEngine_LineToByteOffsets
  1214.     #endif /* _LineToByteOffsets */
  1215. #endif /* SOMGD_LineToByteOffsets */
  1216.  
  1217. /*
  1218.  * New Method: ByteOffsetToLine
  1219.  */
  1220. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ByteOffsetToLine)(TSystemTextEngine *somSelf, Environment *ev,
  1221.         ByteOffset offset,
  1222.         ItemCount* lineNo);
  1223. #define somMD_TSystemTextEngine_ByteOffsetToLine "::TSystemTextEngine::ByteOffsetToLine"
  1224. #define TSystemTextEngine_ByteOffsetToLine(somSelf,ev,offset,lineNo) \
  1225.     (SOM_Resolve(somSelf, TSystemTextEngine, ByteOffsetToLine) \
  1226.     (somSelf,ev,offset,lineNo))
  1227. #ifndef SOMGD_ByteOffsetToLine
  1228.     #if defined _ByteOffsetToLine || defined __ByteOffsetToLine
  1229.         #undef _ByteOffsetToLine
  1230.         #undef __ByteOffsetToLine
  1231.         #define SOMGD_ByteOffsetToLine 1
  1232.     #else
  1233.         #define _ByteOffsetToLine TSystemTextEngine_ByteOffsetToLine
  1234.     #endif /* _ByteOffsetToLine */
  1235. #endif /* SOMGD_ByteOffsetToLine */
  1236.  
  1237. /*
  1238.  * New Method: ByteOffsetToParagraph
  1239.  */
  1240. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ByteOffsetToParagraph)(TSystemTextEngine *somSelf, Environment *ev,
  1241.         ByteOffset offset,
  1242.         ByteOffset* paragraphStartIndex,
  1243.         ByteOffset* paragraphEndIndex);
  1244. #define somMD_TSystemTextEngine_ByteOffsetToParagraph "::TSystemTextEngine::ByteOffsetToParagraph"
  1245. #define TSystemTextEngine_ByteOffsetToParagraph(somSelf,ev,offset,paragraphStartIndex,paragraphEndIndex) \
  1246.     (SOM_Resolve(somSelf, TSystemTextEngine, ByteOffsetToParagraph) \
  1247.     (somSelf,ev,offset,paragraphStartIndex,paragraphEndIndex))
  1248. #ifndef SOMGD_ByteOffsetToParagraph
  1249.     #if defined _ByteOffsetToParagraph || defined __ByteOffsetToParagraph
  1250.         #undef _ByteOffsetToParagraph
  1251.         #undef __ByteOffsetToParagraph
  1252.         #define SOMGD_ByteOffsetToParagraph 1
  1253.     #else
  1254.         #define _ByteOffsetToParagraph TSystemTextEngine_ByteOffsetToParagraph
  1255.     #endif /* _ByteOffsetToParagraph */
  1256. #endif /* SOMGD_ByteOffsetToParagraph */
  1257.  
  1258. /*
  1259.  * New Method: GetCountChars
  1260.  */
  1261. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetCountChars)(TSystemTextEngine *somSelf, Environment *ev,
  1262.         ByteOffset offset,
  1263.         ByteOffset* startIndex,
  1264.         UInt32* charCount);
  1265. #define somMD_TSystemTextEngine_GetCountChars "::TSystemTextEngine::GetCountChars"
  1266. #define TSystemTextEngine_GetCountChars(somSelf,ev,offset,startIndex,charCount) \
  1267.     (SOM_Resolve(somSelf, TSystemTextEngine, GetCountChars) \
  1268.     (somSelf,ev,offset,startIndex,charCount))
  1269. #ifndef SOMGD_GetCountChars
  1270.     #if defined _GetCountChars || defined __GetCountChars
  1271.         #undef _GetCountChars
  1272.         #undef __GetCountChars
  1273.         #define SOMGD_GetCountChars 1
  1274.     #else
  1275.         #define _GetCountChars TSystemTextEngine_GetCountChars
  1276.     #endif /* _GetCountChars */
  1277. #endif /* SOMGD_GetCountChars */
  1278.  
  1279. /*
  1280.  * New Method: GetCountWords
  1281.  */
  1282. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetCountWords)(TSystemTextEngine *somSelf, Environment *ev,
  1283.         ByteOffset offset,
  1284.         ByteOffset* startIndex,
  1285.         UInt32* wordCount);
  1286. #define somMD_TSystemTextEngine_GetCountWords "::TSystemTextEngine::GetCountWords"
  1287. #define TSystemTextEngine_GetCountWords(somSelf,ev,offset,startIndex,wordCount) \
  1288.     (SOM_Resolve(somSelf, TSystemTextEngine, GetCountWords) \
  1289.     (somSelf,ev,offset,startIndex,wordCount))
  1290. #ifndef SOMGD_GetCountWords
  1291.     #if defined _GetCountWords || defined __GetCountWords
  1292.         #undef _GetCountWords
  1293.         #undef __GetCountWords
  1294.         #define SOMGD_GetCountWords 1
  1295.     #else
  1296.         #define _GetCountWords TSystemTextEngine_GetCountWords
  1297.     #endif /* _GetCountWords */
  1298. #endif /* SOMGD_GetCountWords */
  1299.  
  1300. /*
  1301.  * New Method: GetCountLines
  1302.  */
  1303. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetCountLines)(TSystemTextEngine *somSelf, Environment *ev,
  1304.         ByteOffset offset,
  1305.         ByteOffset* startIndex,
  1306.         UInt32* lineCount);
  1307. #define somMD_TSystemTextEngine_GetCountLines "::TSystemTextEngine::GetCountLines"
  1308. #define TSystemTextEngine_GetCountLines(somSelf,ev,offset,startIndex,lineCount) \
  1309.     (SOM_Resolve(somSelf, TSystemTextEngine, GetCountLines) \
  1310.     (somSelf,ev,offset,startIndex,lineCount))
  1311. #ifndef SOMGD_GetCountLines
  1312.     #if defined _GetCountLines || defined __GetCountLines
  1313.         #undef _GetCountLines
  1314.         #undef __GetCountLines
  1315.         #define SOMGD_GetCountLines 1
  1316.     #else
  1317.         #define _GetCountLines TSystemTextEngine_GetCountLines
  1318.     #endif /* _GetCountLines */
  1319. #endif /* SOMGD_GetCountLines */
  1320.  
  1321. /*
  1322.  * New Method: GetCountParagraphs
  1323.  */
  1324. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetCountParagraphs)(TSystemTextEngine *somSelf, Environment *ev,
  1325.         ByteOffset offset,
  1326.         ByteOffset* startIndex,
  1327.         UInt32* paragraphCount);
  1328. #define somMD_TSystemTextEngine_GetCountParagraphs "::TSystemTextEngine::GetCountParagraphs"
  1329. #define TSystemTextEngine_GetCountParagraphs(somSelf,ev,offset,startIndex,paragraphCount) \
  1330.     (SOM_Resolve(somSelf, TSystemTextEngine, GetCountParagraphs) \
  1331.     (somSelf,ev,offset,startIndex,paragraphCount))
  1332. #ifndef SOMGD_GetCountParagraphs
  1333.     #if defined _GetCountParagraphs || defined __GetCountParagraphs
  1334.         #undef _GetCountParagraphs
  1335.         #undef __GetCountParagraphs
  1336.         #define SOMGD_GetCountParagraphs 1
  1337.     #else
  1338.         #define _GetCountParagraphs TSystemTextEngine_GetCountParagraphs
  1339.     #endif /* _GetCountParagraphs */
  1340. #endif /* SOMGD_GetCountParagraphs */
  1341.  
  1342. /*
  1343.  * New Method: Cut
  1344.  */
  1345. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_Cut)(TSystemTextEngine *somSelf, Environment *ev);
  1346. #define somMD_TSystemTextEngine_Cut "::TSystemTextEngine::Cut"
  1347. #define TSystemTextEngine_Cut(somSelf,ev) \
  1348.     (SOM_Resolve(somSelf, TSystemTextEngine, Cut) \
  1349.     (somSelf,ev))
  1350. #ifndef SOMGD_Cut
  1351.     #if defined _Cut || defined __Cut
  1352.         #undef _Cut
  1353.         #undef __Cut
  1354.         #define SOMGD_Cut 1
  1355.     #else
  1356.         #define _Cut TSystemTextEngine_Cut
  1357.     #endif /* _Cut */
  1358. #endif /* SOMGD_Cut */
  1359.  
  1360. /*
  1361.  * New Method: Copy
  1362.  */
  1363. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_Copy)(TSystemTextEngine *somSelf, Environment *ev);
  1364. #define somMD_TSystemTextEngine_Copy "::TSystemTextEngine::Copy"
  1365. #define TSystemTextEngine_Copy(somSelf,ev) \
  1366.     (SOM_Resolve(somSelf, TSystemTextEngine, Copy) \
  1367.     (somSelf,ev))
  1368. #ifndef SOMGD_Copy
  1369.     #if defined _Copy || defined __Copy
  1370.         #undef _Copy
  1371.         #undef __Copy
  1372.         #define SOMGD_Copy 1
  1373.     #else
  1374.         #define _Copy TSystemTextEngine_Copy
  1375.     #endif /* _Copy */
  1376. #endif /* SOMGD_Copy */
  1377.  
  1378. /*
  1379.  * New Method: Paste
  1380.  */
  1381. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_Paste)(TSystemTextEngine *somSelf, Environment *ev);
  1382. #define somMD_TSystemTextEngine_Paste "::TSystemTextEngine::Paste"
  1383. #define TSystemTextEngine_Paste(somSelf,ev) \
  1384.     (SOM_Resolve(somSelf, TSystemTextEngine, Paste) \
  1385.     (somSelf,ev))
  1386. #ifndef SOMGD_Paste
  1387.     #if defined _Paste || defined __Paste
  1388.         #undef _Paste
  1389.         #undef __Paste
  1390.         #define SOMGD_Paste 1
  1391.     #else
  1392.         #define _Paste TSystemTextEngine_Paste
  1393.     #endif /* _Paste */
  1394. #endif /* SOMGD_Paste */
  1395.  
  1396. /*
  1397.  * New Method: CanPaste
  1398.  */
  1399. typedef boolean   (SOMLINK *somTD_TSystemTextEngine_CanPaste)(TSystemTextEngine *somSelf, Environment *ev);
  1400. #define somMD_TSystemTextEngine_CanPaste "::TSystemTextEngine::CanPaste"
  1401. #define TSystemTextEngine_CanPaste(somSelf,ev) \
  1402.     (SOM_Resolve(somSelf, TSystemTextEngine, CanPaste) \
  1403.     (somSelf,ev))
  1404. #ifndef SOMGD_CanPaste
  1405.     #if defined _CanPaste || defined __CanPaste
  1406.         #undef _CanPaste
  1407.         #undef __CanPaste
  1408.         #define SOMGD_CanPaste 1
  1409.     #else
  1410.         #define _CanPaste TSystemTextEngine_CanPaste
  1411.     #endif /* _CanPaste */
  1412. #endif /* SOMGD_CanPaste */
  1413.  
  1414. /*
  1415.  * New Method: Clear
  1416.  */
  1417. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_Clear)(TSystemTextEngine *somSelf, Environment *ev);
  1418. #define somMD_TSystemTextEngine_Clear "::TSystemTextEngine::Clear"
  1419. #define TSystemTextEngine_Clear(somSelf,ev) \
  1420.     (SOM_Resolve(somSelf, TSystemTextEngine, Clear) \
  1421.     (somSelf,ev))
  1422. #ifndef SOMGD_Clear
  1423.     #if defined _Clear || defined __Clear
  1424.         #undef _Clear
  1425.         #undef __Clear
  1426.         #define SOMGD_Clear 1
  1427.     #else
  1428.         #define _Clear TSystemTextEngine_Clear
  1429.     #endif /* _Clear */
  1430. #endif /* SOMGD_Clear */
  1431.  
  1432. /*
  1433.  * New Method: IsUndoActive
  1434.  */
  1435. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_IsUndoActive)(TSystemTextEngine *somSelf, Environment *ev,
  1436.         boolean* isActive,
  1437.         EditCommandID* theCommand);
  1438. #define somMD_TSystemTextEngine_IsUndoActive "::TSystemTextEngine::IsUndoActive"
  1439. #define TSystemTextEngine_IsUndoActive(somSelf,ev,isActive,theCommand) \
  1440.     (SOM_Resolve(somSelf, TSystemTextEngine, IsUndoActive) \
  1441.     (somSelf,ev,isActive,theCommand))
  1442. #ifndef SOMGD_IsUndoActive
  1443.     #if defined _IsUndoActive || defined __IsUndoActive
  1444.         #undef _IsUndoActive
  1445.         #undef __IsUndoActive
  1446.         #define SOMGD_IsUndoActive 1
  1447.     #else
  1448.         #define _IsUndoActive TSystemTextEngine_IsUndoActive
  1449.     #endif /* _IsUndoActive */
  1450. #endif /* SOMGD_IsUndoActive */
  1451.  
  1452. /*
  1453.  * New Method: UndoLastEditCommand
  1454.  */
  1455. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_UndoLastEditCommand)(TSystemTextEngine *somSelf, Environment *ev);
  1456. #define somMD_TSystemTextEngine_UndoLastEditCommand "::TSystemTextEngine::UndoLastEditCommand"
  1457. #define TSystemTextEngine_UndoLastEditCommand(somSelf,ev) \
  1458.     (SOM_Resolve(somSelf, TSystemTextEngine, UndoLastEditCommand) \
  1459.     (somSelf,ev))
  1460. #ifndef SOMGD_UndoLastEditCommand
  1461.     #if defined _UndoLastEditCommand || defined __UndoLastEditCommand
  1462.         #undef _UndoLastEditCommand
  1463.         #undef __UndoLastEditCommand
  1464.         #define SOMGD_UndoLastEditCommand 1
  1465.     #else
  1466.         #define _UndoLastEditCommand TSystemTextEngine_UndoLastEditCommand
  1467.     #endif /* _UndoLastEditCommand */
  1468. #endif /* SOMGD_UndoLastEditCommand */
  1469.  
  1470. /*
  1471.  * New Method: DragEnteredViewedText
  1472.  */
  1473. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DragEnteredViewedText)(TSystemTextEngine *somSelf, Environment *ev,
  1474.         DragReference theDrag,
  1475.         boolean* acceptIt);
  1476. #define somMD_TSystemTextEngine_DragEnteredViewedText "::TSystemTextEngine::DragEnteredViewedText"
  1477. #define TSystemTextEngine_DragEnteredViewedText(somSelf,ev,theDrag,acceptIt) \
  1478.     (SOM_Resolve(somSelf, TSystemTextEngine, DragEnteredViewedText) \
  1479.     (somSelf,ev,theDrag,acceptIt))
  1480. #ifndef SOMGD_DragEnteredViewedText
  1481.     #if defined _DragEnteredViewedText || defined __DragEnteredViewedText
  1482.         #undef _DragEnteredViewedText
  1483.         #undef __DragEnteredViewedText
  1484.         #define SOMGD_DragEnteredViewedText 1
  1485.     #else
  1486.         #define _DragEnteredViewedText TSystemTextEngine_DragEnteredViewedText
  1487.     #endif /* _DragEnteredViewedText */
  1488. #endif /* SOMGD_DragEnteredViewedText */
  1489.  
  1490. /*
  1491.  * New Method: DragInViewedText
  1492.  */
  1493. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DragInViewedText)(TSystemTextEngine *somSelf, Environment *ev,
  1494.         DragReference theDrag);
  1495. #define somMD_TSystemTextEngine_DragInViewedText "::TSystemTextEngine::DragInViewedText"
  1496. #define TSystemTextEngine_DragInViewedText(somSelf,ev,theDrag) \
  1497.     (SOM_Resolve(somSelf, TSystemTextEngine, DragInViewedText) \
  1498.     (somSelf,ev,theDrag))
  1499. #ifndef SOMGD_DragInViewedText
  1500.     #if defined _DragInViewedText || defined __DragInViewedText
  1501.         #undef _DragInViewedText
  1502.         #undef __DragInViewedText
  1503.         #define SOMGD_DragInViewedText 1
  1504.     #else
  1505.         #define _DragInViewedText TSystemTextEngine_DragInViewedText
  1506.     #endif /* _DragInViewedText */
  1507. #endif /* SOMGD_DragInViewedText */
  1508.  
  1509. /*
  1510.  * New Method: DragLeaveViewedText
  1511.  */
  1512. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_DragLeaveViewedText)(TSystemTextEngine *somSelf, Environment *ev,
  1513.         DragReference theDrag);
  1514. #define somMD_TSystemTextEngine_DragLeaveViewedText "::TSystemTextEngine::DragLeaveViewedText"
  1515. #define TSystemTextEngine_DragLeaveViewedText(somSelf,ev,theDrag) \
  1516.     (SOM_Resolve(somSelf, TSystemTextEngine, DragLeaveViewedText) \
  1517.     (somSelf,ev,theDrag))
  1518. #ifndef SOMGD_DragLeaveViewedText
  1519.     #if defined _DragLeaveViewedText || defined __DragLeaveViewedText
  1520.         #undef _DragLeaveViewedText
  1521.         #undef __DragLeaveViewedText
  1522.         #define SOMGD_DragLeaveViewedText 1
  1523.     #else
  1524.         #define _DragLeaveViewedText TSystemTextEngine_DragLeaveViewedText
  1525.     #endif /* _DragLeaveViewedText */
  1526. #endif /* SOMGD_DragLeaveViewedText */
  1527.  
  1528. /*
  1529.  * New Method: Drop
  1530.  */
  1531. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_Drop)(TSystemTextEngine *somSelf, Environment *ev,
  1532.         DragReference theDrag);
  1533. #define somMD_TSystemTextEngine_Drop "::TSystemTextEngine::Drop"
  1534. #define TSystemTextEngine_Drop(somSelf,ev,theDrag) \
  1535.     (SOM_Resolve(somSelf, TSystemTextEngine, Drop) \
  1536.     (somSelf,ev,theDrag))
  1537. #ifndef SOMGD_Drop
  1538.     #if defined _Drop || defined __Drop
  1539.         #undef _Drop
  1540.         #undef __Drop
  1541.         #define SOMGD_Drop 1
  1542.     #else
  1543.         #define _Drop TSystemTextEngine_Drop
  1544.     #endif /* _Drop */
  1545. #endif /* SOMGD_Drop */
  1546.  
  1547. /*
  1548.  * New Method: GetHilileRegionHandle
  1549.  */
  1550. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetHilileRegionHandle)(TSystemTextEngine *somSelf, Environment *ev,
  1551.         RgnHandle* theRgn);
  1552. #define somMD_TSystemTextEngine_GetHilileRegionHandle "::TSystemTextEngine::GetHilileRegionHandle"
  1553. #define TSystemTextEngine_GetHilileRegionHandle(somSelf,ev,theRgn) \
  1554.     (SOM_Resolve(somSelf, TSystemTextEngine, GetHilileRegionHandle) \
  1555.     (somSelf,ev,theRgn))
  1556. #ifndef SOMGD_GetHilileRegionHandle
  1557.     #if defined _GetHilileRegionHandle || defined __GetHilileRegionHandle
  1558.         #undef _GetHilileRegionHandle
  1559.         #undef __GetHilileRegionHandle
  1560.         #define SOMGD_GetHilileRegionHandle 1
  1561.     #else
  1562.         #define _GetHilileRegionHandle TSystemTextEngine_GetHilileRegionHandle
  1563.     #endif /* _GetHilileRegionHandle */
  1564. #endif /* SOMGD_GetHilileRegionHandle */
  1565.  
  1566. /*
  1567.  * New Method: SetTextChangedFlag
  1568.  */
  1569. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextChangedFlag)(TSystemTextEngine *somSelf, Environment *ev);
  1570. #define somMD_TSystemTextEngine_SetTextChangedFlag "::TSystemTextEngine::SetTextChangedFlag"
  1571. #define TSystemTextEngine_SetTextChangedFlag(somSelf,ev) \
  1572.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextChangedFlag) \
  1573.     (somSelf,ev))
  1574. #ifndef SOMGD_SetTextChangedFlag
  1575.     #if defined _SetTextChangedFlag || defined __SetTextChangedFlag
  1576.         #undef _SetTextChangedFlag
  1577.         #undef __SetTextChangedFlag
  1578.         #define SOMGD_SetTextChangedFlag 1
  1579.     #else
  1580.         #define _SetTextChangedFlag TSystemTextEngine_SetTextChangedFlag
  1581.     #endif /* _SetTextChangedFlag */
  1582. #endif /* SOMGD_SetTextChangedFlag */
  1583.  
  1584. /*
  1585.  * New Method: ResetTextChangedFlag
  1586.  */
  1587. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_ResetTextChangedFlag)(TSystemTextEngine *somSelf, Environment *ev);
  1588. #define somMD_TSystemTextEngine_ResetTextChangedFlag "::TSystemTextEngine::ResetTextChangedFlag"
  1589. #define TSystemTextEngine_ResetTextChangedFlag(somSelf,ev) \
  1590.     (SOM_Resolve(somSelf, TSystemTextEngine, ResetTextChangedFlag) \
  1591.     (somSelf,ev))
  1592. #ifndef SOMGD_ResetTextChangedFlag
  1593.     #if defined _ResetTextChangedFlag || defined __ResetTextChangedFlag
  1594.         #undef _ResetTextChangedFlag
  1595.         #undef __ResetTextChangedFlag
  1596.         #define SOMGD_ResetTextChangedFlag 1
  1597.     #else
  1598.         #define _ResetTextChangedFlag TSystemTextEngine_ResetTextChangedFlag
  1599.     #endif /* _ResetTextChangedFlag */
  1600. #endif /* SOMGD_ResetTextChangedFlag */
  1601.  
  1602. /*
  1603.  * New Method: IsTextChanged
  1604.  */
  1605. typedef boolean   (SOMLINK *somTD_TSystemTextEngine_IsTextChanged)(TSystemTextEngine *somSelf, Environment *ev);
  1606. #define somMD_TSystemTextEngine_IsTextChanged "::TSystemTextEngine::IsTextChanged"
  1607. #define TSystemTextEngine_IsTextChanged(somSelf,ev) \
  1608.     (SOM_Resolve(somSelf, TSystemTextEngine, IsTextChanged) \
  1609.     (somSelf,ev))
  1610. #ifndef SOMGD_IsTextChanged
  1611.     #if defined _IsTextChanged || defined __IsTextChanged
  1612.         #undef _IsTextChanged
  1613.         #undef __IsTextChanged
  1614.         #define SOMGD_IsTextChanged 1
  1615.     #else
  1616.         #define _IsTextChanged TSystemTextEngine_IsTextChanged
  1617.     #endif /* _IsTextChanged */
  1618. #endif /* SOMGD_IsTextChanged */
  1619.  
  1620. /*
  1621.  * New Method: MouseIsDown
  1622.  */
  1623. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_MouseIsDown)(TSystemTextEngine *somSelf, Environment *ev,
  1624.         Point* qdMouseCoordinate,
  1625.         EventModifiers modifiers,
  1626.         AppleEvent* theEvent,
  1627.         AppleEvent* reply,
  1628.         AEHandlerTableRef handlerTableRef);
  1629. #define somMD_TSystemTextEngine_MouseIsDown "::TSystemTextEngine::MouseIsDown"
  1630. #define TSystemTextEngine_MouseIsDown(somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef) \
  1631.     (SOM_Resolve(somSelf, TSystemTextEngine, MouseIsDown) \
  1632.     (somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef))
  1633. #ifndef SOMGD_MouseIsDown
  1634.     #if defined _MouseIsDown || defined __MouseIsDown
  1635.         #undef _MouseIsDown
  1636.         #undef __MouseIsDown
  1637.         #define SOMGD_MouseIsDown 1
  1638.     #else
  1639.         #define _MouseIsDown TSystemTextEngine_MouseIsDown
  1640.     #endif /* _MouseIsDown */
  1641. #endif /* SOMGD_MouseIsDown */
  1642.  
  1643. /*
  1644.  * New Method: MouseHasMoved
  1645.  */
  1646. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_MouseHasMoved)(TSystemTextEngine *somSelf, Environment *ev,
  1647.         Point* qdMouseCoordinate,
  1648.         EventModifiers modifiers,
  1649.         AppleEvent* theEvent,
  1650.         AppleEvent* reply,
  1651.         AEHandlerTableRef handlerTableRef);
  1652. #define somMD_TSystemTextEngine_MouseHasMoved "::TSystemTextEngine::MouseHasMoved"
  1653. #define TSystemTextEngine_MouseHasMoved(somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef) \
  1654.     (SOM_Resolve(somSelf, TSystemTextEngine, MouseHasMoved) \
  1655.     (somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef))
  1656. #ifndef SOMGD_MouseHasMoved
  1657.     #if defined _MouseHasMoved || defined __MouseHasMoved
  1658.         #undef _MouseHasMoved
  1659.         #undef __MouseHasMoved
  1660.         #define SOMGD_MouseHasMoved 1
  1661.     #else
  1662.         #define _MouseHasMoved TSystemTextEngine_MouseHasMoved
  1663.     #endif /* _MouseHasMoved */
  1664. #endif /* SOMGD_MouseHasMoved */
  1665.  
  1666. /*
  1667.  * New Method: MouseStopped
  1668.  */
  1669. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_MouseStopped)(TSystemTextEngine *somSelf, Environment *ev,
  1670.         Point* qdMouseCoordinate,
  1671.         EventModifiers modifiers,
  1672.         AppleEvent* theEvent,
  1673.         AppleEvent* reply,
  1674.         AEHandlerTableRef handlerTableRef);
  1675. #define somMD_TSystemTextEngine_MouseStopped "::TSystemTextEngine::MouseStopped"
  1676. #define TSystemTextEngine_MouseStopped(somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef) \
  1677.     (SOM_Resolve(somSelf, TSystemTextEngine, MouseStopped) \
  1678.     (somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef))
  1679. #ifndef SOMGD_MouseStopped
  1680.     #if defined _MouseStopped || defined __MouseStopped
  1681.         #undef _MouseStopped
  1682.         #undef __MouseStopped
  1683.         #define SOMGD_MouseStopped 1
  1684.     #else
  1685.         #define _MouseStopped TSystemTextEngine_MouseStopped
  1686.     #endif /* _MouseStopped */
  1687. #endif /* SOMGD_MouseStopped */
  1688.  
  1689. /*
  1690.  * New Method: MouseIsUp
  1691.  */
  1692. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_MouseIsUp)(TSystemTextEngine *somSelf, Environment *ev,
  1693.         Point* qdMouseCoordinate,
  1694.         EventModifiers modifiers,
  1695.         AppleEvent* theEvent,
  1696.         AppleEvent* reply,
  1697.         AEHandlerTableRef handlerTableRef);
  1698. #define somMD_TSystemTextEngine_MouseIsUp "::TSystemTextEngine::MouseIsUp"
  1699. #define TSystemTextEngine_MouseIsUp(somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef) \
  1700.     (SOM_Resolve(somSelf, TSystemTextEngine, MouseIsUp) \
  1701.     (somSelf,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef))
  1702. #ifndef SOMGD_MouseIsUp
  1703.     #if defined _MouseIsUp || defined __MouseIsUp
  1704.         #undef _MouseIsUp
  1705.         #undef __MouseIsUp
  1706.         #define SOMGD_MouseIsUp 1
  1707.     #else
  1708.         #define _MouseIsUp TSystemTextEngine_MouseIsUp
  1709.     #endif /* _MouseIsUp */
  1710. #endif /* SOMGD_MouseIsUp */
  1711.  
  1712. /*
  1713.  * New Method: HandleTextAEvent
  1714.  */
  1715. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_HandleTextAEvent)(TSystemTextEngine *somSelf, Environment *ev,
  1716.         AEEventID eventID,
  1717.         AppleEvent* appleEvent,
  1718.         AppleEvent* reply,
  1719.         AEHandlerTableRef handlerTableRef);
  1720. #define somMD_TSystemTextEngine_HandleTextAEvent "::TSystemTextEngine::HandleTextAEvent"
  1721. #define TSystemTextEngine_HandleTextAEvent(somSelf,ev,eventID,appleEvent,reply,handlerTableRef) \
  1722.     (SOM_Resolve(somSelf, TSystemTextEngine, HandleTextAEvent) \
  1723.     (somSelf,ev,eventID,appleEvent,reply,handlerTableRef))
  1724. #ifndef SOMGD_HandleTextAEvent
  1725.     #if defined _HandleTextAEvent || defined __HandleTextAEvent
  1726.         #undef _HandleTextAEvent
  1727.         #undef __HandleTextAEvent
  1728.         #define SOMGD_HandleTextAEvent 1
  1729.     #else
  1730.         #define _HandleTextAEvent TSystemTextEngine_HandleTextAEvent
  1731.     #endif /* _HandleTextAEvent */
  1732. #endif /* SOMGD_HandleTextAEvent */
  1733.  
  1734. /*
  1735.  * New Method: TextGainKeyboardFocus
  1736.  */
  1737. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_TextGainKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
  1738. #define somMD_TSystemTextEngine_TextGainKeyboardFocus "::TSystemTextEngine::TextGainKeyboardFocus"
  1739. #define TSystemTextEngine_TextGainKeyboardFocus(somSelf,ev) \
  1740.     (SOM_Resolve(somSelf, TSystemTextEngine, TextGainKeyboardFocus) \
  1741.     (somSelf,ev))
  1742. #ifndef SOMGD_TextGainKeyboardFocus
  1743.     #if defined _TextGainKeyboardFocus || defined __TextGainKeyboardFocus
  1744.         #undef _TextGainKeyboardFocus
  1745.         #undef __TextGainKeyboardFocus
  1746.         #define SOMGD_TextGainKeyboardFocus 1
  1747.     #else
  1748.         #define _TextGainKeyboardFocus TSystemTextEngine_TextGainKeyboardFocus
  1749.     #endif /* _TextGainKeyboardFocus */
  1750. #endif /* SOMGD_TextGainKeyboardFocus */
  1751.  
  1752. /*
  1753.  * New Method: TextGiveUpKeyboardFocus
  1754.  */
  1755. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_TextGiveUpKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
  1756. #define somMD_TSystemTextEngine_TextGiveUpKeyboardFocus "::TSystemTextEngine::TextGiveUpKeyboardFocus"
  1757. #define TSystemTextEngine_TextGiveUpKeyboardFocus(somSelf,ev) \
  1758.     (SOM_Resolve(somSelf, TSystemTextEngine, TextGiveUpKeyboardFocus) \
  1759.     (somSelf,ev))
  1760. #ifndef SOMGD_TextGiveUpKeyboardFocus
  1761.     #if defined _TextGiveUpKeyboardFocus || defined __TextGiveUpKeyboardFocus
  1762.         #undef _TextGiveUpKeyboardFocus
  1763.         #undef __TextGiveUpKeyboardFocus
  1764.         #define SOMGD_TextGiveUpKeyboardFocus 1
  1765.     #else
  1766.         #define _TextGiveUpKeyboardFocus TSystemTextEngine_TextGiveUpKeyboardFocus
  1767.     #endif /* _TextGiveUpKeyboardFocus */
  1768. #endif /* SOMGD_TextGiveUpKeyboardFocus */
  1769.  
  1770. /*
  1771.  * New Method: HasKeyboardFocus
  1772.  */
  1773. typedef boolean   (SOMLINK *somTD_TSystemTextEngine_HasKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
  1774. #define somMD_TSystemTextEngine_HasKeyboardFocus "::TSystemTextEngine::HasKeyboardFocus"
  1775. #define TSystemTextEngine_HasKeyboardFocus(somSelf,ev) \
  1776.     (SOM_Resolve(somSelf, TSystemTextEngine, HasKeyboardFocus) \
  1777.     (somSelf,ev))
  1778. #ifndef SOMGD_HasKeyboardFocus
  1779.     #if defined _HasKeyboardFocus || defined __HasKeyboardFocus
  1780.         #undef _HasKeyboardFocus
  1781.         #undef __HasKeyboardFocus
  1782.         #define SOMGD_HasKeyboardFocus 1
  1783.     #else
  1784.         #define _HasKeyboardFocus TSystemTextEngine_HasKeyboardFocus
  1785.     #endif /* _HasKeyboardFocus */
  1786. #endif /* SOMGD_HasKeyboardFocus */
  1787.  
  1788. /*
  1789.  * New Method: TextInputObjectChanged
  1790.  */
  1791. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_TextInputObjectChanged)(TSystemTextEngine *somSelf, Environment *ev,
  1792.         LocaleIdentifier theLocaleID);
  1793. #define somMD_TSystemTextEngine_TextInputObjectChanged "::TSystemTextEngine::TextInputObjectChanged"
  1794. #define TSystemTextEngine_TextInputObjectChanged(somSelf,ev,theLocaleID) \
  1795.     (SOM_Resolve(somSelf, TSystemTextEngine, TextInputObjectChanged) \
  1796.     (somSelf,ev,theLocaleID))
  1797. #ifndef SOMGD_TextInputObjectChanged
  1798.     #if defined _TextInputObjectChanged || defined __TextInputObjectChanged
  1799.         #undef _TextInputObjectChanged
  1800.         #undef __TextInputObjectChanged
  1801.         #define SOMGD_TextInputObjectChanged 1
  1802.     #else
  1803.         #define _TextInputObjectChanged TSystemTextEngine_TextInputObjectChanged
  1804.     #endif /* _TextInputObjectChanged */
  1805. #endif /* SOMGD_TextInputObjectChanged */
  1806.  
  1807. /*
  1808.  * New Method: GetAETable
  1809.  */
  1810. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_GetAETable)(TSystemTextEngine *somSelf, Environment *ev,
  1811.         AEHandlerTableRef* theTable);
  1812. #define somMD_TSystemTextEngine_GetAETable "::TSystemTextEngine::GetAETable"
  1813. #define TSystemTextEngine_GetAETable(somSelf,ev,theTable) \
  1814.     (SOM_Resolve(somSelf, TSystemTextEngine, GetAETable) \
  1815.     (somSelf,ev,theTable))
  1816. #ifndef SOMGD_GetAETable
  1817.     #if defined _GetAETable || defined __GetAETable
  1818.         #undef _GetAETable
  1819.         #undef __GetAETable
  1820.         #define SOMGD_GetAETable 1
  1821.     #else
  1822.         #define _GetAETable TSystemTextEngine_GetAETable
  1823.     #endif /* _GetAETable */
  1824. #endif /* SOMGD_GetAETable */
  1825.  
  1826. /*
  1827.  * New Method: SetTextMouseDownTrackActionRoutine
  1828.  */
  1829. typedef OSStatus   (SOMLINK *somTD_TSystemTextEngine_SetTextMouseDownTrackActionRoutine)(TSystemTextEngine *somSelf, Environment *ev,
  1830.         MouseDownInTextTrackProcPtr theMouseTrackProcPtr,
  1831.         void* userData);
  1832. #define somMD_TSystemTextEngine_SetTextMouseDownTrackActionRoutine "::TSystemTextEngine::SetTextMouseDownTrackActionRoutine"
  1833. #define TSystemTextEngine_SetTextMouseDownTrackActionRoutine(somSelf,ev,theMouseTrackProcPtr,userData) \
  1834.     (SOM_Resolve(somSelf, TSystemTextEngine, SetTextMouseDownTrackActionRoutine) \
  1835.     (somSelf,ev,theMouseTrackProcPtr,userData))
  1836. #ifndef SOMGD_SetTextMouseDownTrackActionRoutine
  1837.     #if defined _SetTextMouseDownTrackActionRoutine || defined __SetTextMouseDownTrackActionRoutine
  1838.         #undef _SetTextMouseDownTrackActionRoutine
  1839.         #undef __SetTextMouseDownTrackActionRoutine
  1840.         #define SOMGD_SetTextMouseDownTrackActionRoutine 1
  1841.     #else
  1842.         #define _SetTextMouseDownTrackActionRoutine TSystemTextEngine_SetTextMouseDownTrackActionRoutine
  1843.     #endif /* _SetTextMouseDownTrackActionRoutine */
  1844. #endif /* SOMGD_SetTextMouseDownTrackActionRoutine */
  1845. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1846. #define TSystemTextEngine_somInit SOMObject_somInit
  1847. #define TSystemTextEngine_somUninit SOMObject_somUninit
  1848. #define TSystemTextEngine_somDuplicateReference SOMObject_somDuplicateReference
  1849. #define TSystemTextEngine_somCompareReference SOMObject_somCompareReference
  1850. #define TSystemTextEngine_somRelease SOMObject_somRelease
  1851. #define TSystemTextEngine_somFree SOMObject_somFree
  1852. #define TSystemTextEngine_somCanDelete SOMObject_somCanDelete
  1853. #define TSystemTextEngine_somGetClass SOMObject_somGetClass
  1854. #define TSystemTextEngine_somGetClassName SOMObject_somGetClassName
  1855. #define TSystemTextEngine_somGetSize SOMObject_somGetSize
  1856. #define TSystemTextEngine_somIsA SOMObject_somIsA
  1857. #define TSystemTextEngine_somRespondsTo SOMObject_somRespondsTo
  1858. #define TSystemTextEngine_somIsInstanceOf SOMObject_somIsInstanceOf
  1859. #define TSystemTextEngine_somDispatch SOMObject_somDispatch
  1860. #define TSystemTextEngine_somClassDispatch SOMObject_somClassDispatch
  1861. #define TSystemTextEngine_somCastObj SOMObject_somCastObj
  1862. #define TSystemTextEngine_somResetObj SOMObject_somResetObj
  1863. #define TSystemTextEngine_somPrintSelf SOMObject_somPrintSelf
  1864. #define TSystemTextEngine_somDumpSelf SOMObject_somDumpSelf
  1865. #define TSystemTextEngine_somDumpSelfInt SOMObject_somDumpSelfInt
  1866. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1867.  
  1868. #endif       /* SOM_TSystemTextEngine_h */
  1869.